Part Number Hot Search : 
REF02 E28F320 RU6099R3 LC866224 SG500Q AM27C020 SD200 FOD270LV
Product Description
Full Text Search
 

To Download KS8995M0607 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  july 2006 1 m9999-070506 ks8995m micrel, inc. ks8995m integrated 5-port 10/100 managed switch rev 1.13 general description the ks8995m is a highly integrated layer-2 managed switch with optimized bom (bill of materials) cost for low port count, cost-sensitive 10/100mbps switch systems. it also provides an extensive feature set such as tag/port-based vlan, qos (quality of service) priority, management, mib counters, dual mii interfaces and cpu control/data interfaces to effectively address both current and emerging fast ethernet applica- tions. the ks8995m contains five 10/100 transceivers with pat- ented mixed-signal low-power technology, five mac (media access control) units, a high-speed non-blocking switch fabric, a dedicated address look-up engine, and an on-chip frame buffer memory. all phy units support 10baset and 100basetx. in addition, two of the phy units support 100basefx (ports 4 and 5). all support documentation can be found on micrels web site at: www.micrel.com. features ? integrated switch with five macs and five fast ethernet transceivers fully compliant to ieee 802.3u standard ? shared memory based switch fabric with fully non- blocking configuration ? 1.4gbps high-performance memory bandwidth ? 10baset, 100basetx and 100basefx modes (fx in ports 4 and 5) ? dual mii configuration: mii-switch (mac or phy mode mii) and mii-p5 (phy mode mii) ? ieee 802.1q tag-based vlan (16 vlans, full-range vid) for dmz port, wan/lan separation or inter-vlan switch links ? vlan id tag/untag options, per-port basis ? programmable rate limiting 0mbps to 100mbps, ingress and egress port, rate options for high and low priority, per-port-basis ? flow control or drop packet rate limiting (ingress port) ? integrated mib counters for fully compliant statistics gathering, 34 mib counters per port micrel, inc. ? 2180 fortune drive ? san jose, ca 95131 ? usa ? tel + 1 (408) 944-0800 ? fax + 1 (408) 944-0970 ? http://www.mic rel.com functional diagram 1k look-up engine queue mgmnt 10/100 mac 1 buffer mgmnt frame buffers fifo, flow contro l, vlan ta g gin g, priority 10/100 mac 2 10/100 mac 3 10/100 mac 4 10/100 mac 5 sni 10/100 t/tx 1 10/100 t/tx 2 10/100 t/tx 3 10/100 t/tx/fx 4 10/100 t/tx/fx 5 spi eeprom i/f led i/f auto mdi/mdix auto mdi/mdix auto mdi/mdix auto mdi/mdix auto mdi/mdix control reg i/f ks8995m mib counters mii-sw or sni led0[5:1] led1[5:1] led2[5:1] control registers mii-p5 mdc, mdi/o
ks8995m micrel, inc. m9999-070506 2 july 2006 features (continued) ? enable/disable option for huge frame size up to 1916 bytes per frame ? igmp v1/v2 snooping for multicast packet filtering ? special tagging mode to send cpu info on ingress packets port value ? spi slave (complete) and mdio (mii phy only) serial management interface for control of register configura- tion ?m ac-id based security lock option ? control registers configurable on-the-fly (port-priority, 802.1p/d/q, an...) ? cpu read access to mac forwarding table entries ? 802.1d spanning tree protocol ? port mirroring/monitoring/sniffing: ingress and/or egress traffic to any port or mii ? broadcast storm protection with percent control C global and per-port basis ?o ptimization for fiber-to-copper media conversion ? full-chip hardware power-down support (register configuration not saved) ? per-port based software power-save on phy (idle link detection, register configuration preserved) ?q os/cos packets prioritization supports: per port, 802.1p and diffserv based ? 802.1p/q tag insertion or removal on a per port basis (egress) ?m dc and mdi/o interface support to access the mii phy control registers (not all control registers) ?m ii local loopback support ?o n-chip 64kbyte memory for frame buffering (not shared with 1k unicast address table) ?w ire-speed reception and transmission ? integrated look-up engine with dedicated 1k mac addresses ? full duplex ieee 802.3x and half-duplex back pressure flow control ? comprehensive led support ? 7-wire sni support for legacy mac interface ? automatic mdi/mdi-x crossover for plug-and-play ? disable automatic mdi/mdi-x option ? low power: core: 1.8v i/o: 2.5v or 3.3v ? 0.18 m cmos technology ? commercial temperature range: 0 c to +70 c ? industrial temperature range: C40 c to +85 c ? available in 128-pin pqfp package applications ? broadband gateway/firewall/vpn ? integrated dsl or cable modem multi-port router ?w ireless lan access point plus gateway ? home networking expansion ? standalone 10/100 switch ? hotel/campus/mxu gateway ? enterprise voip gateway/phone ? fttx customer premise equipment ?m anaged media converter ordering information part number temperature range package ks8995m 0 c to +70 c 128-pin pqfp ksz8995m 0 c to +70 c 128-pin pqfp lead free ks8995mi C40 c to +85 c 128-pin pqfp
july 2006 3 m9999-070506 ks8995m micrel, inc. revision history revision date summary of changes 1.00 11/05/01 created 1.01 11/09/01 pinout mux1/2, dvcc-io 2.5/3.3v, feature list, register spec 11-09 1.02 12/03/01 editorial changes, added new register and mib descriptions. added paragraph describing tos registers. imported functional descriptions. formatting. 1.03 12/12/01 incorporate changes per engineering feedback as well as updating functional descriptions and adding new timing information. 1.04 12/13/01 changed rev. and for. modes to phy and mac modes respectively. added miim clarification in mii management interface section. reformatted section sequence. added hex register addresses. added advertisement ability descriptions. 1.05 12/18/01 inserted switch forwarding flow charts. 1.06 12/20/01 added new ks8995m block diagram, editorial changes, register descriptions changes and cross- references from functional descriptions to register and strap in options. 1.07 1/22/01 changed fxsd pins to inputs, added new descriptions to configuration interfaces section. edited pin descriptions. 1.08 3/1/02 editorial changes in dynamic mac address table and mib counters. updated figure 2 flowchart. updated table 2 for mac mode connections. separate static mac bit assignments for read and write. edited read and write examples to mac tables and mib counters. changed table 3 ks8995m signals to s suffix. changed aging description in register 2, bit 0. changed port registers section and listed all port register addresses. changed port control 11 description for bits [7:5]. changed mib counter descriptions. 1.09 5/17/02 changed mii setting in pin descriptions. changed pu/pd descriptions for smrxd2. register 18, changed pu/pd description for forced flow control. illegal frames. edited large packet sizes back in. elecrical characteristics, added in typical supply current numbers for 100 basetx and 10 basetx operation. register 18, added in note for illegal half-duplex, force flow control. pin description, added extra x1 clock input description. elecrical characteristics, updated to chip only current numbers. added spi timing. feature highlights. 1.10 7/29/02 pin description, changed smrxc and smtxc to i/o. input in mac mode, output in phy mode mii. elecrical characteristics, modified current consumption to chip only numbers. half-duplex back pressure, added description for no dropped packets in half-duplex mode. added recommended operating conditions. added idle mode current consumption in elecrical characteristics, added selection of isolation transformers, added 3.01k ? resistor instructions for iset pin description section. changed polarity of transmit pairs in pin description. changed description for register 2, bit 1, in register description section. added reset timing section. 1.11 12/17/02 register 3 changed 802.1x to 802.3x. register 6, changed default column to disable flow control for pull-down, and enable flow control for pull-up. register 29 and register 0 indicate loop back is at the phy. added description to register 4 bit 2 to indicate that stpid packets from cpu to normal ports are not allowed as 1522 byte tag packets. fixed dynamic mac address example errors in dynamic mac address table. changed definition of forced mdi, mdix in section register 29, register 30 and register 0. added part ordering information. added ambient operating temperature for ks8995mi 1.12 3/10/03 changed pin 120 description to nc. changed spiq pin description to otri. changed logo. changed contact information. 1.13 7/5/06 add a note for vlan table write, improve the timing diagram of mac mode and phy mode for mii interface, change vddio support 3.3v only, update pin description for pcrs, pcol, and so on.
ks8995m micrel, inc. m9999-070506 4 july 2006 t able of contents system level applications ...................................................................................................... ................................... 7 pin description (by number) .................................................................................................... .................................. 9 pin description (by name) ...................................................................................................... .................................. 15 pin configuration .............................................................................................................. ........................................ 21 introduction ............................................................................................................................... ............................ 22 functional overview: physical layer transceiver ................................................................................. ............... 22 100basetx transmit ............................................................................................................. .............................. 22 100basetx receive .............................................................................................................. .............................. 22 pll clock synthesizer .......................................................................................................... ............................... 22 scrambler/de-scrambler (100basetx only) ........................................................................................ ................ 22 100basefx operation ............................................................................................................ ............................. 22 100basefx signal detection ..................................................................................................... .......................... 22 100basefx far end fault ........................................................................................................ ........................... 23 10baset transmit ............................................................................................................... ................................ 23 10baset receive ................................................................................................................ ................................ 23 power management ............................................................................................................... .............................. 23 mdi/mdi-x auto crossover ....................................................................................................... .......................... 23 auto-negotiation ............................................................................................................... ................................... 23 functional overview: switch core ................................................................................................ .......................... 24 address look-up ................................................................................................................ ................................. 24 learning ....................................................................................................................... .................................... 24 migration ...................................................................................................................... ..................................... 24 aging .......................................................................................................................... ................................. 24 forwarding ..................................................................................................................... ...................................... 24 switching engine ............................................................................................................... .................................. 24 mac operation .................................................................................................................. .................................. 24 inter-packet gap (ipg) ......................................................................................................... ....................... 24 backoff algorithm .............................................................................................................. ........................... 24 late collision ................................................................................................................. .............................. 26 illegal frames ................................................................................................................. ............................. 26 flow control ................................................................................................................... .............................. 26 half-duplex back pressure ...................................................................................................... .................... 26 broadcast storm protection ..................................................................................................... .................... 26 mii interface operation ........................................................................................................ ................................ 26 sni interface operation ........................................................................................................ ............................... 28 advanced functionality ......................................................................................................... ................................... 28 spanning tree support .......................................................................................................... .............................. 28 special tagging mode ........................................................................................................... .............................. 29 igmp support ................................................................................................................... ................................... 30 port mirroring support ......................................................................................................... ................................ 31 vlan support ................................................................................................................... ................................... 31 rate limit support ............................................................................................................. .................................. 32 configuration interface ........................................................................................................ ................................ 33 i2c master serial bus configuration ............................................................................................ ................ 35 spi slave serial bus configuration ............................................................................................. ................ 35 mii management interface (miim) ................................................................................................ ....................... 38
july 2006 5 m9999-070506 ks8995m micrel, inc. register description ........................................................................................................... ...................................... 39 global registers ............................................................................................................... ................................... 39 register 0 (0x00): chip id0 .................................................................................................... ..................... 39 register 1 (0x01): chip id1/start switch ....................................................................................... .............. 39 register 2 (0x02): global control 0 ............................................................................................ ................. 40 register 3 (0x03): global control 1 ............................................................................................ ................. 40 register 4 (0x04): global control 2 ............................................................................................ ................. 41 register 5 (0x05): global control 3 ............................................................................................ ................. 42 register 6 (0x06): global control 4 ............................................................................................ ................. 42 register 7 (0x07): global control 5 ............................................................................................ ................. 43 register 8 (0x08): global control 6 ............................................................................................ ................. 43 register 9 (0x09): global control 7 ............................................................................................ ................. 43 register 10 (0x0a): global control 8 ........................................................................................... ................ 43 register 11 (0x0b): global control 9 ........................................................................................... ................ 43 port registers ................................................................................................................. ..................................... 44 register 16 (0x10): port 1 control 0 ............................................................................................ ............... 44 register 17 (0x11): port 1 control 1 ............................................................................................ ............... 44 register 18 (0x12): port 1 control 2 ............................................................................................ ............... 45 register 19 (0x13): port 1 control 3 ............................................................................................ ............... 46 register 20 (0x14): port 1 control 4 ............................................................................................ ............... 46 register 21 (0x15): port 1 control 5 ............................................................................................ ............... 46 register 22 (0x16): port 1 control 6 ............................................................................................ ............... 46 register 23 (0x17): port 1 control 7 ............................................................................................ ............... 46 register 24 (0x18): port 1 control 8 ............................................................................................ ............... 47 register 25 (0x19): port 1 control 9 ............................................................................................ ............... 47 register 26 (0x1a): port 1 control 10 ........................................................................................... .............. 47 register 27 (0x1b): port 1 control 11 ........................................................................................... .............. 47 register 28 (0x1c): port 1 control 12 ........................................................................................... .............. 48 register 29 (0x1d): port 1 control 13 ........................................................................................... .............. 49 register 30 (0x1e): port 1 status 0 ............................................................................................. ............... 49 register 31 (0x1f): port 1 status 1 ............................................................................................. ................ 50 advanced control registers ..................................................................................................... ........................... 50 register 96 (0x60): tos priority control register 0 ............................................................................. ...... 50 register 97 (0x61): tos priority control register 1 ............................................................................. ...... 50 register 98 (0x62): tos priority control register 2 ............................................................................. ...... 50 register 99 (0x63): tos priority control register 3 ............................................................................. ...... 50 register 100 (0x64): tos priority control register 4 ............................................................................ ..... 50 register 101 (0x65): tos priority control register 5 ............................................................................ ..... 50 register 102 (0x66): tos priority control register 6 ............................................................................ ..... 50 register 103 (0x67): tos priority control register 7 ............................................................................ ..... 50 register 104 (0x68): mac address register 0 ..................................................................................... ...... 50 register 105 (0x69): mac address register 1 ..................................................................................... ...... 50 register 106 (0x6a): mac address register 2 ..................................................................................... ...... 50 register 107 (0x6b): mac address register 3 ..................................................................................... ...... 50 register 108 (0x6c): mac address register 4 ..................................................................................... ..... 50 register 109 (0x6d): mac address register 5 ..................................................................................... ..... 50 register 110 (0x6e): indirect access control 0 .................................................................................. ........ 51 register 111 (0x6f): indirect access control 1 .................................................................................. ........ 51
ks8995m micrel, inc. m9999-070506 6 july 2006 register 112 (0x70): indirect data register 8 ................................................................................... .......... 51 register 113 (0x71): indirect data register 7 ................................................................................... .......... 51 register 114 (0x72): indirect data register 6 ................................................................................... .......... 51 register 115 (0x73): indirect data register 5 ................................................................................... .......... 51 register 116 (0x74): indirect data register 4 ................................................................................... .......... 51 register 117 (0x75): indirect data register 3 ................................................................................... .......... 51 register 118 (0x76): indirect data register 2 ................................................................................... .......... 51 register 119 (0x77): indirect data register 1 ................................................................................... .......... 51 register 120 (0x78): indirect data register 0 ................................................................................... .......... 51 register 121 (0x79): digital testing status 0 ................................................................................... ........... 51 register 122 (0x7a): digital testing status 1 ................................................................................... .......... 51 register 123 (0x7b): digital testing control 0 .................................................................................. .......... 51 register 124 (0x7c): digital testing control 1 .................................................................................. .......... 51 register 125 (0x7d): analog testing control 0 ................................................................................... ....... 51 register 126 (0x7e): analog testing control 1 .................................................................................. ........ 52 register 127 (0x7f): analog testing status ...................................................................................... ......... 52 static mac address ............................................................................................................. ..................................... 53 vlan address ............................................................................................................................... ............................ 55 dynamic mac address ............................................................................................................ ................................. 56 mib counters ............................................................................................................................... ............................ 57 miim registers ............................................................................................................................... ............................ 60 register 0: mii control ....................................................................................................... ......................... 60 register 1: mii status ........................................................................................................ ......................... 61 register 2: phyid high ........................................................................................................ ..................... 61 register 3: phyid low ......................................................................................................... .................... 61 register 4: advertisement ability ............................................................................................. ................... 61 register 5: link partner ability .............................................................................................. ...................... 62 absolute maximum ratings ....................................................................................................... .............................. 63 operating ratings .............................................................................................................. ....................................... 63 electrical characteristics ..................................................................................................... ..................................... 63 timing diagrams ................................................................................................................ ....................................... 65 selection of isolation transformers ............................................................................................ ............................ 72 qualified magnetic lists ....................................................................................................... .................................... 72 package information ............................................................................................................ ..................................... 73
july 2006 7 m9999-070506 ks8995m micrel, inc. system level applications ethernet mac cpu switch controller on-chip fr ame buff ers mii-sw 10/100 phy 5 4-port lan mii-p5 1-port wan i/f 10/100 mac 1 10/100 mac 2 10/100 mac 3 10/100 mac 4 10/100 mac 5 10/100 phy 1 10/100 phy 2 10/100 phy 3 10/100 phy 4 spi/gpio spi external wan port phy not needed ethernet mac figure 1. broadband gateway ethernet mac cpu switch controller on-chip frame buffers mii-sw 10/100 phy 5 4-port lan mii-p5 10/100 mac 1 10/100 mac 2 10/100 mac 3 10/100 mac 4 10/100 mac 5 10/100 phy 1 10/100 phy 2 10/100 phy 3 10/100 phy 4 w an phy & afe (xdsl, cm...) spi spi/gpio figure 2. integrated broadband router
ks8995m micrel, inc. m9999-070506 8 july 2006 switch controller on-chip frame buffers 10/100 phy 5 5-port lan 10/100 mac 1 10/100 mac 2 10/100 mac 3 10/100 mac 4 10/100 mac 5 10/100 phy 1 10/100 phy 2 10/100 phy 3 10/100 phy 4 figure 3. standalone switch
july 2006 9 m9999-070506 ks8995m micrel, inc. pin description (by number) pin number pin name type (1) port pin function 1 test1 nc nc for normal operation. factory test pin. 2 gnda gnd analog ground 3 vddar p 1.8v analog v dd 4 rxp1 i 1 physical receive signal + (differential) 5 rxm1 i 1 physical receive signal - (differential) 6 gnda gnd analog ground 7 txm1 o 1 physical transmit signal - (differential) 8 txp1 o 1 physical transmit signal + (differential) 9 vddat p 2.5v analog v dd 10 rxp2 i 2 physical receive signal + (differential) 11 rxm2 i 2 physical receive signal - (differential) 12 gnda gnd analog ground 13 txm2 o 2 physical transmit signal - (differential) 14 txp2 o 2 physical transmit signal + (differential) 15 vddar p 1.8v analog v dd 16 gnda gnd analog ground 17 iset set physical transmit output current. pull-down with a 3.01k ? 1% resistor. 18 vddat p 2.5v analog v dd 19 rxp3 i 3 physical receive signal + (differential) 20 rxm3 i 3 physical receive signal - (differential) 21 gnda gnd analog ground 22 txm3 o 3 physical transmit signal - (differential) 23 txp3 o 3 physical transmit signal + (differential) 24 vddat p 2.5v analog v dd 25 rxp4 i 4 physical receive signal + (differential) 26 rxm4 i 4 physical receive signal - (differential) 27 gnda gnd analog ground 28 txm4 o 4 physical transmit signal - (differential) 29 txp4 o 4 physical transmit signal + (differential) 30 gnda gnd analog ground 31 vddar p 1.8v analog v dd note: 1. p = power supply i = input o = output i/o = bi-directional gnd = ground ipu = input w/ internal pull-up ipd = input w/ internal pull-down ipd/o = input w/ internal pull-down during reset, output pin otherwise ipu/o = input w/ internal pull-up during reset, output pin otherwise pu = strap pin pull-up pd = strap pin pull-down otri = output tristated nc = no connect
ks8995m micrel, inc. m9999-070506 10 july 2006 pin number pin name type (1) port pin function 32 rxp5 i 5 physical receive signal + (differential) 33 rxm5 i 5 physical receive signal - (differential) 34 gnda gnd analog ground 35 txm5 o 5 physical transmit signal - (differential) 36 txp5 o 5 physical transmit signal + (differential) 37 vddat p 2.5v analog v dd 38 fxsd5 i 5 fiber signal detect/factory test pin, pull-down for tx mode 39 fxsd4 i 4 fiber signal detect/factory test pin, pull-down for tx mode 40 gnda gnd analog ground 41 vddar p 1.8v analog v dd 42 gnda gnd analog ground 43 vddar p 1.8v analog v dd 44 gnda gnd analog ground 45 mux1 nc mux1 and mux2 should be left unconnected for normal operation. 46 mux2 nc they are factory test pins. mode mux1 mux2 normal operation nc nc remote analog loopback mode for testing only 0 1 reserved 1 0 power save mode for testing only 1 1 47 pwrdn_n ipu full-chip power down. active low. 48 reserve nc reserved pin. no connect. 49 gndd gnd digital ground 50 vddc p 1.8v digital core v dd 51 pmtxen ipd 5 phy[5] mii transmit enable 52 pmtxd3 ipd 5 phy[5] mii transmit bit 3 53 pmtxd2 ipd 5 phy[5] mii transmit bit 2 54 pmtxd1 ipd 5 phy[5] mii transmit bit 1 55 pmtxd0 ipd 5 phy[5] mii transmit bit 0 56 pmtxer ipd 5 phy[5] mii transmit error 57 pmtxc o 5 phy[5] mii transmit clock. phy mode mii. 58 gndd gnd digital ground note: 1. p = power supply i = input o = output i/o = bi-directional gnd = ground ipu = input w/ internal pull-up ipd = input w/ internal pull-down ipd/o = input w/ internal pull-down during reset, output pin otherwise ipu/o = input w/ internal pull-up during reset, output pin otherwise pu = strap pin pull-up pd = strap pin pull-down otri = output tristated nc = no connect
july 2006 11 m9999-070506 ks8995m micrel, inc. pin number pin name type (1) port pin function 59 vddio p 3.3v digital v dd for digital i/o circuitry 60 pmrxc o 5 phy[5] mii receive clock. phy mode mii 61 pmrxdv ipd/o 5 phy[5] mii receive data valid 62 pmrxd3 ipd/o 5 phy[5] mii receive bit 3. strap option: pd (default) = enable flow control; pu = disable flow control. 63 pmrxd2 ipd/o 5 phy[5] mii receive bit 2. strap option: pd (default) = disable back pressure; pu = enable back pressure. 64 pmrxd1 ipd/o 5 phy[5] mii receive bit 1. strap option: pd (default) = drop excessive collision packets; pu = does not drop excessive collision packets. 65 pmrxd0 ipd/o 5 phy[5] mii receive bit 0. strap option: pd (default) = disable aggressive back-off algorithm in half-duplex mode; pu = enable for performance enhancement. 66 pmrxer ipd/o 5 phy[5] mii receive error. strap option: pd (default) = 1522/1518 bytes; pu = packet size up to 1536 bytes. 67 pcrs ipd/o 5 phy[5] mii carrier sense. strap option for port 4 only. see register 76. pd (default) = force half-duplex if auto-negotiation is disabled or fails. pu = force full-duplex if auto-negotiation is disabled or fails. 68 pcol ipd/o 5 phy[5] mii collision detect. strap option for port 4 only. see register 66. pd (default) = no force flow control. pu = force flow control. 69 smtxen ipd switch mii transmit enable 70 smtxd3 ipd switch mii transmit bit 3 71 smtxd2 ipd switch mii transmit bit 2 72 smtxd1 ipd switch mii transmit bit 1 73 smtxd0 ipd switch mii transmit bit 0 74 smtxer ipd switch mii transmit error 75 smtxc i/o switch mii transmit clock. input in mac mode, output in phy mode mii. 76 gndd gnd digital ground 77 vddio p 3.3v digital v dd for digital i/o circuitry 78 smrxc i/o switch mii receive clock. input in mac mode, output in phy mode mii. 79 smrxdv ipd/o switch mii receive data valid 80 smrxd3 ipd/o switch mii receive bit 3. strap option: pd (default) = disable switch mii full-duplex flow control; pu = enable switch mii full-duplex flow control. 81 smrxd2 ipd/o switch mii receive bit 2. strap option: pd (default) = switch mii in full- duplex mode; pu = switch mii in half-duplex mode. note: 1. p = power supply i = input o = output i/o = bi-directional gnd = ground ipu = input w/ internal pull-up ipd = input w/ internal pull-down ipd/o = input w/ internal pull-down during reset, output pin otherwise ipu/o = input w/ internal pull-up during reset, output pin otherwise pu = strap pin pull-up pd = strap pin pull-down otri = output tristated nc = no connect
ks8995m micrel, inc. m9999-070506 12 july 2006 pin number pin name type (1) port pin function 82 smrxd1 ipd/o switch mii receive bit 1. strap option: pd (default) = switch mii in 100mbps mode; pu = switch mii in 10mbps mode. 83 smrxd0 ipd/o switch mii receive bit 0; strap option: led mode pd (default) = mode 0; pu = mode 1. see register 11. mode 0 mode 1 ledx_2 lnk/act 100lnk/act ledx_1 fulld/col 10lnk/act ledx_0 speed fulld 84 scol ipd/o switch mii collision detect 85 scrs ipd/o switch mii carrier sense 86 sconf1 ipd dual mii configuration pin pin# (91, 86, 87): switch mii phy [5] mii 000 disable, otri disable, otri 001 phy mode mii disable, otri 010 mac mode mii disable, otri 011 phy mode sni disable, otri 100 disable disable 101 phy mode mii phy mode mii 110 mac mode mii phy mode mii 111 phy mode sni phy mode mii 87 sconf0 ipd dual mii configuration pin 88 gndd gnd digital ground 89 vddc p 1.8v digital core v dd 90 led5-2 ipu/o 5 led indicator 2. strap option: aging setup. see aging section pu (default) = aging enable; pd = aging disable. 91 led5-1 ipu/o 5 led indicator 1. strap option: pu (default): enable phy [5] mii i/f pd: tristate all phy [5] mii output. see pin# 86 sconf1. 92 led5-0 ipu/o 5 led indicator 0 93 led4-2 ipu/o 4 led indicator 2 94 led4-1 ipu/o 4 led indicator 1 95 led4-0 ipu/o 4 led indicator 0 96 led3-2 ipu/o 3 led indicator 2 97 led3-1 ipu/o 3 led indicator 1 note: 1. p = power supply i = input o = output i/o = bi-directional gnd = ground ipu = input w/ internal pull-up ipd = input w/ internal pull-down ipd/o = input w/ internal pull-down during reset, output pin otherwise ipu/o = input w/ internal pull-up during reset, output pin otherwise pu = strap pin pull-up pd = strap pin pull-down otri = output tristated nc = no connect
july 2006 13 m9999-070506 ks8995m micrel, inc. pin number pin name type (1) port pin function 98 led3-0 ipu/o 3 led indicator 0 99 gndd gnd digital ground 100 vddio p 3.3v digital v dd for digital i/o 101 led2-2 ipu/o 2 led indicator 2 102 led2-1 ipu/o 2 led indicator 1 103 led2-0 ipu/o 2 led indicator 0 104 led1-2 ipu/o 1 led indicator 2 105 led1-1 ipu/o 1 led indicator 1 106 led1-0 ipu/o 1 led indicator 0 107 mdc ipu all switch or phy[5] mii management data clock 108 mdio i/o all switch or phy[5] mii management data i/o. features internal pull down to define pin state when not driven. 109 spiq otri all (1) spi serial data output in spi slave mode; (2) not used in i2c master mode. see pin# 113. 110 spic/scl i/o all (1) input clock up to 5mhz in spi slave mode; (2) output clock at 81khz in i2c master mode. see pin# 113. 111 spid/sda i/o all (1) serial data input in spi slave mode; (2) serial data input/output in i2c master mode see pin# 113. 112 spis_n ipu all active low. (1) spi data transfer start in spi slave mode. when spis_n is high, the ks8995m is deselected and spiq is held in high impedance state, a high-to-low transition to initiate the spi data transfer; (2) not used in i2c master mode. 113 ps1 ipd serial bus configuration pin if eeprom is not present, the ks8995m will start itself with chip default (00)... pin config. serial bus configuration ps[1:0]=00 i2c master mode for eeprom ps[1:0]=01 reserved ps[1:0]=10 spi slave mode for cpu interface ps[1:0]=11 factory test mode (bist) 114 ps0 ipd serial bus configuration pin. see pin# 113. 115 rst_n ipu reset the ks8995m. active low. 116 gndd gnd digital ground 117 vddc p 1.8v digital core v dd 118 testen ipd nc for normal operation. factory test pin. note: 1. p = power supply i = input o = output i/o = bi-directional gnd = ground ipu = input w/ internal pull-up ipd = input w/ internal pull-down ipd/o = input w/ internal pull-down during reset, output pin otherwise ipu/o = input w/ internal pull-up during reset, output pin otherwise pu = strap pin pull-up pd = strap pin pull-down otri = output tristated nc = no connect
ks8995m micrel, inc. m9999-070506 14 july 2006 pin number pin name type (1) port pin function 119 scanen ipd nc for normal operation. factory test pin. 120 nc nc no connect 121 x1 i 25mhz crystal clock connection/or 3.3v tolerant oscillator input. oscillator should be 100ppm. 122 x2 o 25mhz crystal clock connection 123 vddap p 1.8v analog v dd for pll 124 gnda gnd analog ground 125 vddar p 1.8v analog v dd 126 gnda gnd analog ground 127 gnda gnd analog ground 128 test2 nc nc for normal operation. factory test pin. note: 1. p = power supply i = input o = output i/o = bi-directional gnd = ground ipu = input w/ internal pull-up ipd = input w/ internal pull-down ipd/o = input w/ internal pull-down during reset, output pin otherwise ipu/o = input w/ internal pull-up during reset, output pin otherwise pu = strap pin pull-up pd = strap pin pull-down otri = output tristated nc = no connect
july 2006 15 m9999-070506 ks8995m micrel, inc. pin description (by name) pin number pin name type (1) port pin function 39 fxsd4 i 4 fiber signal detect/factory test pin. pull-down for tx mode. 38 fxsd5 i 5 fiber signal detect/factory test pin. pull-down for tx mode 124 gnda gnd analog ground 42 gnda gnd analog ground 44 gnda gnd analog ground 2 gnda gnd analog ground 16 gnda gnd analog ground 30 gnda gnd analog ground 6 gnda gnd analog ground 12 gnda gnd analog ground 21 gnda gnd analog ground 27 gnda gnd analog ground 34 gnda gnd analog ground 40 gnda gnd analog ground 120 nc nc no connect 127 gnda gnd analog ground 126 gnda gnd analog ground 49 gndd gnd digital ground 88 gndd gnd digital ground 116 gndd gnd digital ground 58 gndd gnd digital ground 76 gndd gnd digital ground 99 gndd gnd digital ground 17 iset set physical transmit output current. pull-down with a 3.01k ? 1% resistor. 106 led1-0 ipu/o 1 led indicator 0 105 led1-1 ipu/o 1 led indicator 1 104 led1-2 ipu/o 1 led indicator 2 103 led2-0 ipu/o 2 led indicator 0 102 led2-1 ipu/o 2 led indicator 1 101 led2-2 ipu/o 2 led indicator 2 98 led3-0 ipu/o 3 led indicator 0 note: 1. p = power supply i = input o = output i/o = bi-directional gnd = ground ipu = input w/ internal pull-up ipd = input w/ internal pull-down ipd/o = input w/ internal pull-down during reset, output pin otherwise ipu/o = input w/ internal pull-up during reset, output pin otherwise pu = strap pin pull-up pd = strap pin pull-down otri = output tristated nc = no connect
ks8995m micrel, inc. m9999-070506 16 july 2006 pin number pin name type (1) port pin function 97 led3-1 ipu/o 3 led indicator 1 96 led3-2 ipu/o 3 led indicator 2 95 led4-0 ipu/o 4 led indicator 0 94 led4-1 ipu/o 4 led indicator 1 93 led4-2 ipu/o 4 led indicator 2 92 led5-0 ipu/o 5 led indicator 0 91 led5-1 ipu/o 5 led indicator 1. strap option: pu (default): enable phy mii i/f. pd: tristate all phy mii output. see pin# 86 sconf1. 90 led5-2 ipu/o 5 led indicator 2. strap option: aging setup. see aging section. (default) = aging enable; pd = aging disable 107 mdc ipu all switch or phy[5] mii management data clock. 108 mdio i/o all switch or phy[5] mii management data i/o. 1 test1 nc nc for normal operation. factory test pin. 45 mux1 nc mux1 and mux2 should be left unconnected for normal operation. 46 mux2 nc they are factory test pins. mode mux1 mux2 normal operation nc nc remote analog loopback mode for testing only 0 1 reserved 1 0 power save mode for testing only 1 1 68 pcol ipd/o 5 phy[5] mii collision detect. strap option for port 4 only. see register 18. pd (default) = no force flow control. pu = force flow control. 67 pcrs ipd/o 5 phy[5] mii carrier sense. strap option for port 4 only. see register 28. pd (default) = force half-duplex if auto-negotiation is disabled or fails. pu = force full-duplex if auto-negotiation is disabled or fails. 60 pmrxc o 5 phy[5] mii receive clock. phy mode mii. 65 pmrxd0 ipd/o 5 phy[5] mii receive bit 0. strap option: pd (default) = disable aggressive back-off algorithm in half-duplex mode; pu = enable for performance enhancement. 64 pmrxd1 ipd/o 5 phy[5] mii receive bit 1. strap option: pd (default) = drop excessive collision packets; pu = does not drop excessive collision packets. 63 pmrxd2 ipd/o 5 phy[5] mii receive bit 2. strap option: pd (default) = disable back pressure; pu = enable back pressure. 62 pmrxd3 ipd/o 5 phy[5] mii receive bit 3. strap option: pd (default) = enable flow control; pu = disable flow control. note: 1. p = power supply i = input o = output i/o = bi-directional gnd = ground ipu = input w/ internal pull-up ipd = input w/ internal pull-down ipd/o = input w/ internal pull-down during reset, output pin otherwise ipu/o = input w/ internal pull-up during reset, output pin otherwise pu = strap pin pull-up pd = strap pin pull-down otri = output tristated nc = no connect
july 2006 17 m9999-070506 ks8995m micrel, inc. pin number pin name type (1) port pin function 61 pmrxdv ipd/o 5 phy[5] mii receive data valid. 66 pmrxer ipd/o 5 phy[5] mii receive error. strap option: pd (default) = 1522/1518 bytes; pu = packet size up to 1536 bytes. 57 pmtxc o 5 phy[5] mii transmit clock. phy mode mii 55 pmtxd0 ipd 5 phy[5] mii transmit bit 0 54 pmtxd1 ipd 5 phy[5] mii transmit bit 1 53 pmtxd2 ipd 5 phy[5] mii transmit bit 2 52 pmtxd3 ipd 5 phy[5] mii transmit bit 3 51 pmtxen ipd 5 phy[5] mii transmit enable 56 pmtxer ipd 5 phy[5] mii transmit error 114 ps0 ipd serial bus configuration pin. see pin# 113. 113 ps1 ipd serial bus configuration pin if eeprom is not present, the ks8995m will start itself with chip default (00)... pin config. serial bus configuration ps[1:0]=00 i2c master mode for eeprom ps[1:0]=01 reserved ps[1:0]=10 spi slave mode for cpu interface ps[1:0]=11 factory test mode (bist) 47 pwrdn_n ipu full-chip power down. active low. 48 reserve nc reserved pin. no connect. 115 rst_n ipu reset the ks8995m. active low. 5 rxm1 i 1 physical receive signal - (differential) 11 rxm2 i 2 physical receive signal - (differential) 20 rxm3 i 3 physical receive signal - (differential) 26 rxm4 i 4 physical receive signal - (differential) 33 rxm5 i 5 physical receive signal - (differential) 4 rxp1 i 1 physical receive signal + (differential) 10 rxp2 i 2 physical receive signal + (differential) 19 rxp3 i 3 physical receive signal + (differential) 25 rxp4 i 4 physical receive signal + (differential) 32 rxp5 i 5 physical receive signal + (differential) 119 scanen ipd nc for normal operation. factory test pin. 84 scol ipd/o switch mii collision detect. note: 1. p = power supply i = input o = output i/o = bi-directional gnd = ground ipu = input w/ internal pull-up ipd = input w/ internal pull-down ipd/o = input w/ internal pull-down during reset, output pin otherwise ipu/o = input w/ internal pull-up during reset, output pin otherwise pu = strap pin pull-up pd = strap pin pull-down otri = output tristated nc = no connect
ks8995m micrel, inc. m9999-070506 18 july 2006 pin number pin name type (1) port pin function 87 sconf0 ipd dual mii configuration pin 86 sconf1 ipd dual mii configuration pin pin# (91, 86, 87): switch mii phy [5] mii 000 disable, otri disable, otri 001 phy mode mii disable, otri 010 mac mode mii disable, otri 011 phy mode sni disable, otri 100 disable disable 101 phy mode mii phy mode mii 110 mac mode mii phy mode mii 111 phy mode sni phy mode mii 85 scrs ipd/o switch mii carrier sense 78 smrxc i/o switch mii receive clock. input in mac mode, output in phy mode mii. 83 smrxd0 ipd/o switch mii receive bit 0; strap option: led mode pd (default) = mode 0; pu = mode 1. see register 11. mode 0 mode 1 ledx_2 lnk/act 100lnk/act ledx_1 fulld/col 10lnk/act ledx_0 speed fulld 82 smrxd1 ipd/o switch mii receive bit 1. strap option: pd (default) = switch mii in 100mbps mode; pu = switch mii in 10mbps mode. 81 smrxd2 ipd/o switch mii receive bit 2. strap option: pd (default) = switch mii in full-duplex mode; pu = switch mii in half-duplex mode. 80 smrxd3 ipd/o switch mii receive bit 3. strap option: pd (default) = disable switch mii full-duplex flow control; pu = enable switch mii full-duplex flow control. 79 smrxdv ipd/o switch mii receive data valid 75 smtxc i/o switch mii transmit clock. input in mac mode, output in phy mode mii. 73 smtxd0 ipd switch mii transmit bit 0 72 smtxd1 ipd switch mii transmit bit 1 71 smtxd2 ipd switch mii transmit bit 2 70 smtxd3 ipd switch mii transmit bit 3 69 smtxen ipd switch mii transmit enable 74 smtxer ipd switch mii transmit error note: 1. p = power supply i = input o = output i/o = bi-directional gnd = ground ipu = input w/ internal pull-up ipd = input w/ internal pull-down ipd/o = input w/ internal pull-down during reset, output pin otherwise ipu/o = input w/ internal pull-up during reset, output pin otherwise pu = strap pin pull-up pd = strap pin pull-down otri = output tristated nc = no connect
july 2006 19 m9999-070506 ks8995m micrel, inc. pin number pin name type (1) port pin function 110 spic/scl i/o all (1) input clock up to 5mhz in spi slave mode; (2) output clock at 81khz in i2c master mode. see pin# 113. 111 spid/sda i/o all (1) serial data input in spi slave mode; (2) serial data input/output in i2c master mode. see pin# 113. 109 spiq otri all (1) spi serial data output in spi slave mode; (2) not used in i2c master mode. see pin# 113. 112 spis_n ipu all active low. (1) spi data transfer start in spi slave mode. when spis_n is high, the ks8995m is deselected and spiq is held in high impedance state, a high-to-low transition to initiate the spi data transfer; (2) not used in i2c master mode. 128 test2 nc no connect for normal operation. factory test pin. 118 testen ipd no connect for normal operation. factory test pin. 8 txp1 o 1 physical transmit signal + (differential) 14 txp2 o 2 physical transmit signal + (differential) 23 txp3 o 3 physical transmit signal + (differential) 29 txp4 o 4 physical transmit signal + (differential) 36 txp5 o 5 physical transmit signal + (differential) 7 txm1 o 1 physical transmit signal - (differential) 13 txm2 o 2 physical transmit signal - (differential) 22 txm3 o 3 physical transmit signal - (differential) 28 txm4 o 4 physical transmit signal - (differential) 35 txm5 o 5 physical transmit signal - (differential) 123 vddap p 1.8v analog v dd for pll 41 vddar p 1.8v analog v dd 43 vddar p 1.8v analog v dd 3 vddar p 1.8v analog v dd 15 vddar p 1.8v analog v dd 31 vddar p 1.8v analog v dd 125 vddar p 1.8v analog v dd 18 vddat p 2.5v analog v dd 9 vddat p 2.5v analog v dd 24 vddat p 2.5v analog v dd 37 vddat p 2.5v analog v dd 50 vddc p 1.8v digital core v dd note: 1. p = power supply i = input o = output i/o = bi-directional gnd = ground ipu = input w/ internal pull-up ipd = input w/ internal pull-down ipd/o = input w/ internal pull-down during reset, output pin otherwise ipu/o = input w/ internal pull-up during reset, output pin otherwise pu = strap pin pull-up pd = strap pin pull-down otri = output tristated nc = no connect
ks8995m micrel, inc. m9999-070506 20 july 2006 pin number pin name type (1) port pin function 89 vddc p 1.8v digital core v dd 117 vddc p 1.8v digital core v dd 59 vddio p 3.3v digital v dd for digital i/o circuitry 77 vddio p 3.3v digital v dd for digital i/o circuitry 100 vddio p 3.3v digital v dd for digital i/o circuitry 121 x1 i 25mhz crystal clock connection/or 3.3v tolerant oscillator input. oscillator should be 100ppm. 122 x2 o 25mhz crystal clock connection. note: 1. p = power supply i = input o = output i/o = bi-directional gnd = ground ipu = input w/ internal pull-up ipd = input w/ internal pull-down ipd/o = input w/ internal pull-down during reset, output pin otherwise ipu/o = input w/ internal pull-up during reset, output pin otherwise pu = strap pin pull-up pd = strap pin pull-down otri = output tristated nc = no connect
july 2006 21 m9999-070506 ks8995m micrel, inc. pin configuration test1 gnda vddar rxp1 rxm1 gnda txm1 txp1 vddat rxp2 rxm2 gnda txm2 txp2 vddar gnda iset vddat rxp3 rxm3 gnda txm3 txp3 vddat rxp4 rxm4 gnda txm4 txp4 gnda vddar rxp5 rxm5 gnda txm5 txp5 vddat fxsd5 led2-1 led2-2 vddio gndd led3-0 led3-1 led3-2 led4-0 led4-1 led4-2 led5-0 led5-1 led5-2 vddc gndd sconf0 sconf1 scrs scol smrxd0 smrxd1 smrxd2 smrxd3 smrxdv smrxc vddio gndd smtxc smtxer smtxd0 smtxd1 smtxd2 smtxd3 smtexn pcol pcrs pmrxer pmrxd0 pmrxd1 pmrxd2 pmrxd3 pmrxdv pmrxc vddio gndd pmtxc pmtxer pmtxd0 pmtxd1 pmtxd2 pmtxd3 pmtxen vddc gndd reserve pwrdn_n mux2 mux1 gnda vddar gnda vddar gnda fxsd4 led2-0 led1-2 led1-1 led1-0 mdc mdio spiq spic/scl spid/sda spis_n ps1 ps0 rst_n gndd vddc testen scanen nc x1 x2 vddap gnda vddar gnda gnda test2 65 39 1 103 128-pin pqfp (pq)
ks8995m micrel, inc. m9999-070506 22 july 2006 introduction the ks8995m contains five 10/100 physical layer transceivers and five mac (media access control) units with an integrated layer 2 managed switch. the device runs in three modes. the first mode is as a five-port integrated switch. the second is as a five-port switch with the fifth port decoupled from the physical port. in this mode access to the fifth mac is provided throu gh an mii (media independent interface). this is useful for implementing an integrated broadband router. the third mode uses the dual mii feature to recover the use of the fifth phy. this allows the additional broadband gateway configuration, where the fifth phy may be accessed through the mii-p5 port. the ks8995m has the flexibility to reside in a managed or unmanaged design. in a managed design, a host processor has complete control of the ks8995m via the spi bus, or partial control via the mdc/mdio interface. an unmanaged design is achieved through i/o strapping or eeprom programming at system reset time. on the media side, the ks8995m supports ieee 802.3 10baset, 100basetx on all ports, and 100basefx on ports 4 and 5. the ks8995m can be used as two separate media converters. physical signal transmission and reception are enhanced through the use of patented analog circuitry that makes the design more efficient and allows for lower power consumption and smaller chip die size. the major enhancements from the ks8995e to the ks8995m are support for host processor management, a dual mii interface, tag as well as port based vlan, spanning tree protocol support, igmp snooping support, port mirroring support and rate limiting functionality. functional overview: physical layer transceiver 100basetx transmit the 100basetx transmit function performs parallel to serial conversion, 4b/5b coding, scrambling, nrz-to-nrzi conversion, mlt3 encoding and transmission. the circuit starts with a parallel-to-serial conversion, which converts the mii data from the mac into a 125mhz serial bit stream. the data and control stream is then converted into 4b/5b coding followed by a scrambler. the serialized data is further converted from nrz to nrzi format, and then transmitted in mlt3 current output. the output current is set by an external 1% 3.01k ? resistor for the 1:1 transformer ratio. it has a typical rise/fall time of 4ns and complies with the ansi tp-pmd standard regarding amplitude balance, overshoot and timing jitter. the wave-shaped 10baset output is also incorporated into the 100basetx transmitter. 100basetx receive the 100basetx receiver function performs adaptive equalization, dc restoration, mlt3-to-nrzi conversion, data and clock recovery, nrzi-to-nrz conversion, de-scrambling, 4b/5b decoding and serial-to-parallel conversion. the receiving side starts with the equalization filter to compensate for inter-symbol interference (isi) over the twisted pair cable. since the amplitude loss and phase distortion is a function of the length of the cable, the equalizer has to adjust its characteristics t o optimize the performance. in this design, the variable equalizer will make an initial estimation based on comparisons of incoming signal strength against some known cable characteristics, it then tunes itself for optimization. this is an ongoing process and can self-adjust against environmental changes such as temperature variations. the equalized signal then goes through a dc restoration and data conversion block. the dc restoration circuit is used to compensate for the effect of baseline wander and improve the dynamic range. the differential data conversion circuit converts the mlt3 format back to nrzi. the slicing threshold is also adaptive. the clock recovery circuit extracts the 125mhz clock from the edges of the nrzi signal. this recovered clock is then used to convert the nrzi signal into the nrz format. the signal is then sent through the de-scrambler followed by the 4b/5b decoder. finally, the nrz serial data is converted to the mii format and provided as the input data to the mac. pll clock synthesizer the ks8995m generates 125mhz, 42mhz, 25mhz and 10mhz clocks for system timing. internal clocks are generated from an external 25mhz crystal or oscillator. scrambler/de-scrambler (100basetx only) the purpose of the scrambler is to spread the power spectrum of the signal in order to reduce emi and baseline wander. the data is scrambled through the use of an 11-bit wide linear feedback shift register (lfsr). this can generate a 2047-bit non- repetitive sequence. the receiver will then de-scramble the incoming data stream with the same sequence at the transmitter. 100basefx operation 100basefx operation is very similar to 100basetx operation except that the scrambler/de-scrambler and mlt3 encoder/ decoder are bypassed on transmission and reception. in this mode the auto-negotiation feature is bypassed since there is no standard that supports fiber auto-negotiation. 100basefx signal detection the physical port runs in 100basefx mode if fxsdx >0.6v for ports 4 and 5 only. this signal is internally referenced to 1.25v. the fiber module interface should be set by a voltage divider such that fxsdx h is above this 1.25v reference, indicating sig nal
july 2006 23 m9999-070506 ks8995m micrel, inc. detect, and fxsdx l is below the 1.25v reference to indicate no signal. when fxsdx is below 0.6v then 100basefx mode is disabled. since there is no auto-negotiation for 100basefx mode, ports 4 and 5 must be forced to either full or half-duplex. note that strap in options exist to set duplex mode for port 4, but not for port 5. 100basefx far end fault far end fault occurs when the signal detection is logically false from the receive fiber module. when this occurs, the transmission side signals the other end of the link by sending 84 1s followed by a zero in the idle period between frames. the far end fault may be disabled through register settings. 10baset transmit the output 10baset driver is incorporated into the 100baset driver to allow transmission with the same magnetics. they are internally wave-shaped and pre-emphasized into outputs with a typical 2.3v amplitude. the harmonic contents are at least 27db below the fundamental when driven by an all-ones manchester-encoded signal. 10baset receive on the receive side, input buffer and level detecting squelch circuits are employed. a differential input receiver circuit and a pll perform the decoding function. the manchester-encoded data stream is separated into clock signal and nrz data. a squelch circuit rejects signals with levels less than 400mv or with short pulse widths in order to prevent noises at the rxp or rxm input from falsely triggering the decoder. when the input exceeds the squelch limit, the pll locks onto the incoming signa l and the ks8995m decodes a data frame. the receiver clock is maintained active during idle periods in between data reception. power management the ks8995m features a per port power down mode. to save power the user can power down ports that are not in use by setting port control registers or mii control registers. in addition, it also supports full chip power down mode. when activated, the entire chip will be shut down. mdi/mdi-x auto crossover the ks8995m supports mdi/mdi-x auto crossover. this facilitates the use of either a straight connection cat-5 cable or a crossover cat-5 cable. the auto-sense function will detect remote transmit and receive pairs, and correctly assign the transmit and receive pairs from the micrel device. this can be highly useful when end users are unaware of cable types and can also save on an additional uplink configuration connection. the auto crossover feature may be disabled through the port control registers. auto-negotiation the ks8995m conforms to the auto-negotiation protocol as described by the 802.3 committee. auto-negotiation allows utp (unshielded twisted pair) link partners to select the best common mode of operation. in auto-negotiation the link partners advertise capabilities across the link to each other. if auto-negotiation is not supported or the link partner to the ks8995m i s forced to bypass auto-negotiation, then the mode is set by observing the signal at the receiver. this is known as parallel mode because while the transmitter is sending auto-negotiation advertisements, the receiver is listening for advertisements or a fix ed signal protocol. the flow for the link set up is depicted in figure 4. start auto negotiation force link setting listen for 10baset link pulses listen for 100basetx idles attempt auto-negotiation link mode set bypass auto-negotiation and set link mode link mode set ? parallel operation join flow no yes yes no figure 4. auto-negotiation
ks8995m micrel, inc. m9999-070506 24 july 2006 functional overview: switch core address look-up the internal look-up table stores mac addresses and their associated information. it contains a 1k unicast address table plus switching information. the ks8995m is guaranteed to learn 1k addresses and distinguishes itself from hash-based look-up tables which, depending on the operating environment and probabilities, may not guarantee the absolute number of addresses it can learn. learning the internal look-up engine will update its table with a new entry if the following conditions are met: ? the received packets sa (source address) does not exist in the look-up table. ? the received packet is good; the packet has no receiving errors, and is of legal length. the look-up engine will insert the qualified sa into the table, along with the port number, time stamp. if the table is full, the last entry of the table will be deleted first to make room for the new entry. migration the internal look-up engine also monitors whether a station is moved. if it happens, it will update the table accordingly. migration happens when the following conditions are met: ? the received packets sa is in the table but the associated source port information is different. ? the received packet is good; the packet has no receiving errors, and is of legal length. the look-up engine will update the existing record in the table with the new source port information. aging the look-up engine will update the time stamp information of a record whenever the corresponding sa appears. the time stamp is used in the aging process. if a record is not updated for a period of time, the look-up engine will remove the record from the table. the look-up engine constantly performs the aging process and will continuously remove aging records. the aging period is 300 + 75 seconds. this feature can be enabled or disabled through register 3 or by external pull-up or pull-down resistors on led[5][2]. see register 3 section. forwarding the ks8995m will forward packets using an algorithm that is depicted in the following flowcharts. figure 5 shows stage one of the forwarding algorithm where the search engine looks up the vlan id, static table, and dynamic table for the destination address, and comes up with port to forward 1 (ptf1). ptf1 is then further modified by the spanning tree, igmp snooping, port mirroring, and port vlan processes to come up with port to forward 2 (ptf2) as shown in figure 6. this is where the packet will be sent. the ks8995m will not forward the following packets: ? error packets. these include framing errors, fcs errors, alignment errors, and illegal size packet errors. ? 802.3x pause frames. the ks8995m will intercept these packets and perform the appropriate actions. ? local packets. based on da (destination address) look-up. if the destination port from the look-up table matches the port where the packet was from, the packet is defined as local. switching engine the ks8995m features a high-performance switching engine to move data to and from the macs packet buffers. it operates in store and forward mode, while the efficient switching mechanism reduces overall latency. the ks8995m has a 64kb internal frame buffer. this resource is shared between all five ports. the buffer sharing mode can be programmed through register 2. see register 2. in one mode, ports are allowed to use any free buffers in the buffer pool. in the second mode, each port is only allowed to use 1/5 of the total buffer pool. there are a total of 512 buffers available. each buffer is sized at 128b. mac (media access controller) operation the ks8995m strictly abides by ieee 802.3 standards to maximize compatibility. inter-packet gap (ipg) if a frame is successfully transmitted, the 96-bit time ipg is measured between the two consecutive mtxen. if the current packet is experiencing collision, the 96-bit time ipg is measured from mcrs and the next mtxen. backoff algorithm the ks8995m implements the ieee std 802.3 binary exponential back-off algorithm, and optional aggressive mode back off. after 16 collisions, the packet will be optionally dropped depending on the chip configuration in register 3. see register 3.
july 2006 25 m9999-070506 ks8995m micrel, inc. spanning tree process ptf1 igmp process port mirror process port vlan membership check ptf2 -check receiving port's receive enable bit -check destination port's transmit enable bit -check whether packets are special (bpdu or specified) -applied to mac #1 to #4 -mac#5 is reserved for microprocessor -igmp will be forwarded to port 5 -rx mirror -tx mirror -rx or tx mirror -rx and tx mirror figure 6. da resolution flowchartCstage 2 start vlan id v alid? ptf1=null search static t able search complete. get ptf1 from static table dynamic t able search search complete. get ptf1 from vlan table search complete. get ptf1 from dynamic table ptf1 -search vlan table -ingress vlan filtering -discard npvid check yes no found not found found not found this search is based on da or da+fid this search is based on da+fid figure 5. da look-up flowchartCstage 1
ks8995m micrel, inc. m9999-070506 26 july 2006 late collision if a transmit packet experiences collisions after 512-bit times of the transmission, the packet will be dropped. illegal frames the ks8995m discards frames less than 64 bytes and can be programmed to accept frames up to 1536 bytes in register 4. for special applications, the ks8995m can also be programmed to accept frames up to 1916 bytes in register 4. since the ks8995m supports vlan tags, the maximum sizing is adjusted when these tags are present. flow control the ks8995m supports standard 802.3x flow control frames on both transmit and receive sides. on the receive side, if the ks8995m receives a pause control frame, the ks8995m will not transmit the next normal frame until the timer, specified in the pause control frame, expires. if another pause frame is received before the current timer expires, the timer will be updated with the new value in the second pause frame. during this period (being flow controlled), only flow control packets from the ks8995m will be transmitted. on the transmit side, the ks8995m has intelligent and efficient ways to determine when to invoke flow control. the flow control is based on availability of the system resources, including available buffers, available transmit queues and available receive queues. the ks8995m will flow control a port, which just received a packet, if the destination port resource is being used up. the ks8995m will issue a flow control frame (xoff), containing the maximum pause time defined in ieee standard 802.3x. once the resource is freed up, the ks8995m will send out the other flow control frame (xon) with zero pause time to turn off the flow control (turn on transmission to the port). a hysteresis feature is provided to prevent the flow control mechanism from be ing activated and deactivated too many times. the ks8995m will flow control all ports if the receive queue becomes full. half-duplex back pressure a half-duplex back pressure option (note: not in 802.3 standards) is also provided. the activation and deactivation conditions are the same as the above in full-duplex mode. if back pressure is required, the ks8995m will send preambles to defer the other stations transmission (carrier sense deference). to avoid jabber and excessive deference defined in 802.3 standard, after a certain time it will discontinue the carrier sense but it will raise the carrier sense quickly. this short silent time (no carrier sense) is to prevent other stations from sending out packets and keeps other stations in carrier sense deferred state. if the p ort has packets to send during a back pressure situation, the carrier-sense-type back pressure will be interrupted and those packets will be transmitted instead. if there are no more packets to send, carrier-sense-type back pressure will be active agai n until switch resources are free. if a collision occurs, the binary exponential backoff algorithm is skipped and carrier sense i s generated immediately, reducing the chance of further colliding and maintaining carrier sense to prevent reception of packets. to ensure no packet loss in 10baset or 100basetx half-duplex modes, the user must enable the following: ? aggressive backoff (register 3, bit 0) ? no excessive collision drop (register 4, bit 3) ? back pressure (register 4, bit 5) these bits are not set as the default because this is not the ieee standard. broadcast storm protection the ks8995m has an intelligent option to protect the switch system from receiving too many broadcast packets. broadcast packets will be forwarded to all ports except the source port, and thus use too many switch resources (bandwidth and available space in transmit queues). the ks8995m has the option to include multicast packets for storm control. the broadcast storm rate parameters are programmed globally, and can be enabled or disabled on a per port basis. the rate is based on a 50ms interval for 100bt and a 500ms interval for 10bt. at the beginning of each interval, the counter is cleared to zero, and the ra te limit mechanism starts to count the number of bytes during the interval. the rate definition is described in register 6 and register 7. the default setting for registers 6 and 7 is 0x4a, which is 74 decimal. this is equal to a rate of 1%, calculated a s follows: 148,800 frames/sec 50ms/interval 1% = 74 frames/interval (approx.) = 0x4a mii interface operation the mii (media independent interface) is specified by the ieee 802.3 committee and provides a common interface between physical layer and mac layer devices. the ks8995m provides two such interfaces. the mii-p5 interface is used to connect to the fifth phy, whereas the mii-sw interface is used to connect to the fifth mac. each of these mii interfaces contains two distinct groups of signals, one for transmission and the other for receiving. table 5 describes the signals used in the mii-p5 interface.
july 2006 27 m9999-070506 ks8995m micrel, inc. mii signal description ks8995m signal mtxen transmit enable pmtxen mtxer transmit error pmtxer mtxd3 transmit data bit 3 pmtxd[3] mtxd2 transmit data bit 2 pmtxd[2] mtxd1 transmit data bit 1 pmtxd[1] mtxd0 transmit data bit 0 pmtxd[0] mtxc transmit clock pmtxc mcol collision detection pcol mcrs carrier sense pcrs mrxdv receive data valid pmrxdv mrxer receive error pmrxer mrxd3 receive data bit 3 pmrxd[3] mrxd2 receive data bit 2 pmrxd[2] mrxd1 receive data bit 1 pmrxd[1] mrxd0 receive data bit 0 pmrxd[0] mrxc receive clock pmrxc mdc management data clock mdc mdio management data i/o mdio table 1. miiCp5 signals (phy mode) phy mode connection mac mode connection external ks8995m external ks8995m mac signal description phy signal mtxen smtxen transmit enable mtxen smrxdv mtxer smtxer transmit error mtxer not used mtxd3 smtxd[3] transmit data bit 3 mtxd3 smrxd[3] mtxd2 smtxd[2] transmit data bit 2 mtxd2 smrxd[2] mtxd1 smtxd[1] transmit data bit 1 mtxd1 smrxd[1] mtxd0 smtxd[0] transmit data bit 0 mtxd0 smrxd[0] mtxc smtxc transmit clock mtxc smrxc mcol scol collision detection mcol scol mcrs scrs carrier sense mcrs scrs mrxdv smrxdv receive data valid mrxdv smtxen mrxer not used receive error mrxer smtxer mrxd3 smrxd[3] receive data bit 3 mrxd3 smtxd[3] mrxd2 smrxd[2] receive data bit 2 mrxd2 smtxd[2] mrxd1 smrxd[1] receive data bit 1 mrxd1 smtxd[1] mrxd0 smrxd[0] receive data bit 0 mrxd0 smtxd[0] mrxc smrxc receive clock mrxc smtxc table 2. miiCsw signals
ks8995m micrel, inc. m9999-070506 28 july 2006 the mii-p5 interface operates in phy mode only, while the mii-sw interface operates in either mac mode or phy mode. these interfaces are nibble wide data interfaces and therefore run at 1/4 the network bit rate (not encoded). additional signals on t he transmit side indicate when data is valid or when an error occurs during transmission. likewise, the receive side has indicator s that convey when the data is valid and without physical layer errors. for half-duplex operation there is a signal that indicat es a collision has occurred during transmission. note that the signal mrxer is not provided on the mii-sw interface for phy mode operation and the signal mtxer is not provided on the mii-sw interface for mac mode operation. normally mrxer would indicate a receive error coming from the physical layer device. mtxer would indicate a transmit error from the mac device. these signals are not appropriate for this configuration. for phy mode operation, if the device interfacing with the ks8995m has an mrxer pin, it should be tied low. for mac mode operation, if the device interfacing with the ks8995m has an mtxer pin, it should be tied low. sni interface operation the sni (serial network interface) is compatible with some controllers used for network layer protocol processing. this interface can be directly connected to these types of devices. the signals are divided into two groups, one for transmission and the other for reception. the signals involved are described in table 3. sni signal description ks8995m signal txen transmit enable smtxen txd serial transmit data smtxd[0] txc transmit clock smtxc col collision detection scol crs carrier sense smrxdv rxd serial receive data smrxd[0] rxc receive clock smrxc table 3. sni signals this interface is a bit wide data interface and therefore runs at the network bit rate (not encoded). an additional signal on t he transmit side indicates when data is valid. likewise, the receive side has an indicator that conveys when the data is valid. for half-duplex operation there is a signal that indicates a collision has occurred during transmission. advanced functionality spanning tree support to support spanning tree, port 5 is the designated port for the processor. the other ports (port 1 - port 4) can be configured in one of the five spanning tree states via transmit enable, receive ena ble and learning disable register settings in registers 18, 34, 50, and 66 for ports 1, 2, 3 and 4, respectively. the following description shows the port setting and software actions taken for each of the five spanning tree states. disable state: the port should not forward or receive any packets. learning is disabled. port setting: transmit enable = 0, receive enable = 0, learning disable = 1 software action: the processor should not send any packets to the port. the switch may still send specific packets to the processor (packets that match some entries in the static table with overriding bit set) and the processor should discard thos e packets. note: processor is connected to port 5 via mii interface. address learning is disabled on the port in this state. blocking state: only packets to the processor are forwarded. learning is disabled. port setting: transmit enable = 0, receive enable = 0, learning disable = 1 software action: the processor should not send any packets to the port(s) in this state. the processor should program the static table with the entries that it needs to receive (e.g. bpdu packets). the overriding bit should also be set so that the switch will forward those specific packets to the processor. address learning is disabled on the port in this state. listening state: only packets to and from the processor are forwarded. learning is disabled. port setting: transmit enable = 0, receive enable = 0, learning disable = 1 software action: the processor should program the static mac table with the entries that it needs to receive (e.g. bpdu packets). the overriding bit should be set so that the switch will forward those specific packets to the processor. the proce ssor may send packets to the port(s) in this state, see special tagging mode section for details. address learning is disabled on the port in this state.
july 2006 29 m9999-070506 ks8995m micrel, inc. learning state: only packets to and from the processor are forwarded. learning is enabled. port setting: transmit enable = 0, receive enable = 0, learning disable = 0 software action: the processor should program the static mac table with the entries that it needs to receive (e.g. bpdu packets). the overriding bit should be set so that the switch will forward those specific packets to the processor. the proce ssor may send packets to the port(s) in this state, see special tagging mode section for details. address learning is enabled on the port in this state. forwarding state: packets are forwarded and received normally. learning is enabled. port setting: transmit enable = 1, receive enable = 1, learning disable = 0 software action: the processor should program the static mac table with the entries that it needs to receive (e.g. bpdu packets). the overriding bit should be set so that the switch will forward those specific packets to the processor. the proce ssor may send packets to the port(s) in this state, see special tagging mode section for details. address learning is enabled on the port in this state. special tagging mode the special tagging mode is designed for spanning tree protocol igmp snooping and is flexible for use in other applications. the special tagging mode, similar to 802.1q, requires software to change network drivers to insert/modify/strip/interpret the special tag. this mode is enabled by setting both register 11 bit 0 and register 80-bit 2. 802.1q tag format special tag format tpid (tag protocol identifier, 0x8100) + tci stpid (special tag identifier, 0x8100) + tci 0x810 + 4 bit for port mask) + tci table 4. special tagging mode format the stpid will only be seen and used on the port 5 interface, which should be connected to a processor. packets from the processor to the switch should be tagged with stpid and the port mask defined as below: 0001 packet to port 1 only 0010 packet to port 2 only 0100 packet to port 3 only 1000 packet to port 4 only 0011 packet broadcast to port 1 and port 2. ..... 1111 packet broadcast to port 1, 2, 3 and 4. 0000 normal tag, will use ks8995m internal look-up result. normal packets should use this setting. if packets from the processors do not have a tag, the ks8995m will treat them as normal packets and an internal look-up will be performed. the ks8995m uses a non-zero port mask to bypass the look-up result and override any port setting, regardless of port states (blocking, disable, listening, learning). the table 5 shows the egress rules when dealing with stpid.
ks8995m micrel, inc. m9999-070506 30 july 2006 tx port tx port ingress tag field tag insertion tag removal egress action to tag field (0x810+ port mask) 0 0 ? modify tag field to 0x8100 ? recalculate crc ? no change to tci if not null vid ? replace vid with ingress (port 5) port vid if null vid (0x810+ port mask) 0 1 ? (stpid + tci) will be removed ? padding to 64 bytes if necessary ? recalculate crc (0x810+ port mask) 1 0 ? modify tag field to 0x8100 ? recalculate crc ? no change to tci if not null vid ? replace vid with ingress (port 5) port vid if null vid (0x810+ port mask) 1 1 ? modify tag field to 0x8100 ? recalculate crc ? no change to tci if not null vid ? replace vid with ingress (port 5) port vid if null vid not tagged dont care dont care determined by the dynamic mac address table table 5. stpid egress rules (processor to switch port 5) for packets from regular ports (port 1 - port 4) to port 5, the port mask is used to tell the processor which port the packet w as received on, defined as: 0001 from port 1, 0010 from port 2, 0100 from port 3, 1000 from port 4 no values other than the previous four defined should be received in this direction in the special mode. table 6 shows the egress rule for this direction. ingress packets egress action to tag field tagged with 0x8100 + tci ? modify tpid to 0x810 + port mask, which indicates source port ? no change to tci, if vid is not null ? replace null vid with ingress port vid ? recalculate crc not tagged ? insert tpid to 0x810 + port mask, which indicates source port ? insert tci with ingress port vid ? recalculate crc table 6. stpid egress rules (switch to processor) igmp support there are two parts involved to support igmp in layer 2. the first part is igmp snooping. the switch will trap igmp packets and forward them only to the processor port. the igmp packets are identified as ip packets (either ethernet ip packets or ieee 802.3 snap ip packets) and ip version = 0x4 and protocol number = 0x2. the second part is multicast address insertion in the static mac table. once the multicast address is programmed in the static mac table, the multicast session will be trimme d to the subscribed ports, instead of broadcasting to all ports. to enable this feature, set register 5 bit 6 to 1. also specia l tag mode needs to be enabled, so that the processor knows which port the igmp packet was received on. enable special tag mode by setting both register 11 bit 0 and register 80-bit 2.
july 2006 31 m9999-070506 ks8995m micrel, inc. port mirroring support ks8995m supports port mirror comprehensively as: 1. receive only mirror on a port. all the packets received on the port will be mirrored on the sniffer port. for example, port 1 is programmed to be rx sniff, and port 5 is programmed to be the sniffer port. a packet, received on port 1, is destined to port 4 after the internal look-up. the ks8995m will forward the packet to both port 4 and port 5. ks8995m can optionally forward even bad received packets to port 5. 2. transmit only mirror on a port. all the packets transmitted on the port will be mirrored on the sniffer port. for example, port 1 is programmed to be tx sniff, and port 5 is programmed to be the sniffer port. a packet, received on any of the ports, is destined to port 1 after the internal look-up. the ks8995m will forward the packet to both port 1 and port 5. 3. receive and transmit mirror on two ports. all the packets received on port a and transmitted on port b will be mirrored on the sniffer port. to turn on the and feature, set register 5 bit 0 to 1. for example, port 1 is programmed to be rx sniff, port 2 is programmed to be transmit sniff and port 5 is programmed to be the sniffer port. a packet, received on port 1, is destined to port 4 after the internal look-up. the ks8995m will forward the packet to port 4 only, since it does not meet the and condition. a packet, received on port 1, is destined to port 2 after the internal look- up. the ks8995m will forward the packet to both port 2 and port 5. multiple ports can be selected to be rx sniffed or tx sniffed. and any port can be selected to be the sniffer port. all t hese per port features can be selected through register 17. vlan support ks8995m supports 16 active vlans out of 4096 possible vlans specified in ieee 802.1q. ks8995m provides a 16-entry vlan table, which converts vid (12 bits) to fid (4bits) for address look-up. if a non-tagged or null-vid-tagged packet is received, the ingress port vid is used for look-up. in the vlan mode, the look-up process starts with vlan table look-up to determine whether the vid is valid. if the vid is not valid, the packet will be dropped and its address will not be learned. if the vid is valid, fid is retrieved for further look-up. fid+da is used to determine the destination port. fid+sa is used for learning purposes. da found in da+fid found in static mac table use fid flag? fid match? dynamic mac table action no dont care dont care no broadcast to the membership ports defined in the vlan table bit [20:16] no dont care dont care yes send to the destination port defined in the dynamic mac table bit [54:52] yes 0 dont care dont care send to the destination port(s) defined in the static mac table bit [52:48] yes 1 no no broadcast to the membership ports defined in the vlan table bit [20:16] yes 1 no yes send to the destination port defined in the dynamic mac table bit [54:52] yes 1 yes dont care send to the destination port(s) defined in the static mac table bit [52:48] table 7. fid+da look-up in the vlan mode
ks8995m micrel, inc. m9999-070506 32 july 2006 sa+fid found in dynamic mac table action no the sa+fid will be learned into the dynamic table. yes time stamp will be updated table 8. fid+sa look-up in the vlan mode advanced vlan features are also supported in ks8995m, such as vlan ingress filtering and discard non pvid defined in register 18 bit 6 and bit 5. these features can be controlled on a port basis. rate limit support ks8995m supports hardware rate limiting on receive and transmit independently on a per port basis. it also supports rate limiting in a priority or non-priority environment. the rate limit starts from 0kbps and goes up to the line rate in steps of 3 2kbps. the ks8995m uses one second as an interval. at the beginning of each interval, the counter is cleared to zero, and the rate limit mechanism starts to count the number of bytes during this interval. for receive, if the number of bytes exceeds the programmed limit, the switch will stop receiving packets on the port until the one second interval expires. there is an option provided for flow control to prevent packet loss. if the rate limit is progra mmed greater than or equal to 128kbps and the byte counter is 8k bytes below the limit, the flow control will be triggered. if the r ate limit is programmed lower than 128kbps and the byte counter is 2k bytes below the limit, the flow control will be triggered. for transmit, if the number of bytes exceeds the programmed limit, the switch will stop transmitting packets on the port until the one second interval expires. if priority is enabled, the ks8995m can support different rate controls for both high priority and low priority packets. this c an be programmed through registers 21 C 27.
july 2006 33 m9999-070506 ks8995m micrel, inc. configuration interface the ks8995m can function as a managed switch or unmanaged switch. if no eeprom or micro-controller exists, the ks8995m will operate from its default setting. some default settings are configured via strap in options as indicated in the ta ble below. pin # pin name pu/pd description 1 test1 nc nc for normal operation. factory test pin. 45 mux1 nc mux1 and mux2 should be left unconnected for normal operation. 46 mux2 nc they are factory test pins mode mux1 mux2 normal operation nc nc remote analog loopback mode for testing only 0 1 reserved 1 0 power save mode for testing only 1 1 62 pmrxd3 ipd/o phy[5] mii receive bit 3. strap option: pd (default) = enable flow control; pu = disable flow control. 63 pmrxd2 ipd/o phy[5] mii receive bit 2. strap option: pd (default) = disable back pressure; pu = enable back pressure. 64 pmrxd1 ipd/o phy[5] mii receive bit 1. strap option: pd (default) = drop excessive collision packets; pu = does not drop excessive collision packets. 65 pmrxd0 ipd/o phy[5] mii receive bit 0. strap option: pd (default) = disable aggressive back-off algorithm in half-duplex mode; pu = enable for performance enhancement. 66 pmrxer ipd/o phy[5] mii receive error. strap option: pd (default) = 1522/1518 bytes; pu = packet size up to 1536 bytes. 67 pcrs ipd/o phy[5] mii carrier sense/force duplex mode. see register 76 for port 4 only. pd (default) = force half-duplex if auto-negotiation is disabled or fails. pu = force full-duplex if auto-negotiation is disabled or fails. 68 pcol ipd/o phy[5] mii collision detect/ force flow control. see register 66 for port 4 only. pd (default) = no force flow control. pu = force flow control. 80 smrxd3 ipd/o switch mii receive bit 3. strap option: pd (default) = disable switch mii full-duplex flow control; pu = enable switch mii full-duplex flow control. 81 smrxd2 ipd/o switch mii receive bit 2. strap option: pd (default) = switch mii in full-duplex mode; pu = switch mii in half-duplex mode. 82 smrxd1 ipd/o switch mii receive bit 1. strap option: pd (default) = switch mii in 100mbps mode; pu = switch mii in 10mbps mode. 83 smrxd0 ipd/o switch mii receive bit 0; strap option: led mode pd (default) = mode 0; pu = mode 1. see register 11. mode 0 mode 1 ledx_2 lnk/act 100lnk/act ledx_1 fulld/col 10lnk/act ledx_0 speed fulld
ks8995m micrel, inc. m9999-070506 34 july 2006 pin # pin name pu/pd description 86 sconf1 ipd dual mii configuration pin. pin# (91, 86, 87): switch mii phy [5] mii 000 disable, otri disable, otri 001 phy mode mii disable, otri 010 mac mode mii disable, otri 011 phy mode sni disable, otri 100 disable disable 101 phy mode mii phy mode mii 110 mac mode mii phy mode mii 111 phy mode sni phy mode mii 87 sconf0 ipd dual mii configuration pin. 90 led5-2 ipu/o led indicator 2. strap option: aging setup. see aging section. pu (default) = aging enable; pd = aging disable. 91 led5-1 ipu/o led indicator 1. strap option: pu (default): enable phy mii i/f. pd: tristate all phy mii output. see pin# 86 sconf1. 113 ps1 ipd serial bus configuration pin if eeprom is not present, the ks8995m will start itself with chip default (00)... pin configuration serial bus configuration ps[1:0]=00 i2c master mode for eeprom ps[1:0]=01 reserved ps[1:0]=10 spi slave mode for cpu interface ps[1:0]=11 factory test mode (bist) 114 ps0 ipd serial bus configuration pin. see pin# 113. 128 test2 nc nc for normal operation. factory test pin.
july 2006 35 m9999-070506 ks8995m micrel, inc. i2c master serial bus configuration if a 2-wire eeprom exists, the ks8995m can perform more advanced features like broadcast storm protection, rate control, etc. the eeprom should have the entire valid configuration data from register 0 to register 109 defined in the memory map, except the status registers. after reset, the ks8995m will start to read all 110 registers sequentially from the eeprom. the configuration access time (t prgm ) is less than 15ms as shown in figure 7. .... .... .... rst_n scl sda t prgm <15 ms figure 7. ks8995m eeprom configuration timing diagram to configure the ks8995m with a pre-configured eeprom use the following steps: 1. at the board level, connect pin 110 on the ks8995m to the scl pin on the eeprom. connect pin 111 on the ks8995m to the sda pin on the eeprom. 2. set the input signals ps[1:0] (pins 113 and 114, respectively) to 00. this puts the ks8995m serial bus configuration into i2c master mode. 3. be sure the board level reset signal is connected to the ks8995m reset signal on pin 115 (rst_n). 4. program the contents of the eeprom before placing it on the board with the desired configuration data. note that the first byte in the eeprom must be 95 for the loading to occur properly. if this value is not correct, all other data will be ignored. 5. place eeprom on the board and power up the board. assert the active-low board level reset to rst_n on the ks8995m. after the reset is deasserted, the ks8995m will begin reading configuration data from the eeprom. the configuration access time (t prgm ) is less than 15ms. note: for proper operation, make sure pin 47 (pwrdn_n) is not asserted during the reset operation. spi slave serial bus configuration the ks8995m can also act as an spi slave device. through the spi, the entire feature set can be enabled, including vlan, igmp snooping, mib counters, etc. the external master device can access any register from register 0 to register 127 randomly. the system should configure all the desired settings before enabling the switch in the ks8995m. to enable the switch, write a one to register 1 bit 0. two standard spi commands are supported (00000011 for read data, and 00000010 for write data). to speed configuration time, the ks8995m also supports multiple reads or writes. after a byte is written to or read from the ks8995m, the internal address counter automatically increments if the spi slave select signal (spis_n) continues to be driven low. if spis_n is kept low after the first byte is read, the next byte at the next address will be shifted out on spiq. if spis_n is ke pt low after the first byte is written, bits on the master out slave input (spid) line will be written to the next address. assert ing spis_n high terminates a read or write operation. this means that the spis_n signal must be asserted high and then low again before issuing another command and address. the address counter wraps back to zero once it reaches the highest address. therefore the entire register set can be written to or read from by issuing a single command and address. the ks8995m is able to support a 5mhz spi bus. a high performance spi master is recommended to prevent internal counter overflow.
ks8995m micrel, inc. m9999-070506 36 july 2006 to use the ks8995m spi: 1. at the board level, connect ks8995m pins as follows: ks8995m ks8995m microprocessor signal pin number signal name description 112 spis_n spi slave select 110 spic spi clock 111 spid master out slave input 109 spiq master in slave output table 9. spi connections 2. set the input signals ps[1:0] (pins 113 and 114 respectively) to 10 to set the serial configuration to spi slave mode. 3. power up the board and assert a reset signal. after reset, the start switch bit in register 1 will be set to 0. configur e the desired settings in the ks8995m before setting the start register to 1. 4. write configuration to registers using a typical spi write data cycle as shown in figure 8 or spi multiple write as shown in figure 10. note that data input on spid is registered on the rising edge of spic. 5. registers can be read and configuration can be verified with a typical spi read data cycle as shown in figure 9 or a multiple read as shown in figure 11. note that read data is registered out of spiq on the falling edge of spic. 6. after configuration is written and verified, write a 1 to register 1 bit 0 to begin ks8995m operation.
july 2006 37 m9999-070506 ks8995m micrel, inc. spiq spic spid spis_n 0 0000010 x a7 a6 a5 a4 a3 a2 a1 a0 write command write address write data d2 d0 d1 d3 d4 d5 d6 d7 figure 8. spi write data cycle spiq spic spid spis_n 0 0000011 x a7 a6 a5 a4 a3 a2 a1 a0 d7 d6 d5 d4 d3 d2 d1 d0 read command read address read data figure 9. spi read data cycle
ks8995m micrel, inc. m9999-070506 38 july 2006 spiq spic spid spis_n 00000010 x a7 a6 a5 a4 a3 a2 a1 a0 write command write address byte 1 d2 d0 d1 d3 d4 d5 d6 d7 spiq spic spid spis_n d7 d6 d5 d4 d4 d2 d1 d0 d7 d6 d5 d4 d3 d2 d1 d0 byte 2 byte 3 ... byte n d2 d0 d1 d3 d4 d5 d6 d7 figure 10. spi multiple write spiq spic spid spis_n 00000011 x a7 a6 a5 a4 a3 a2 a1 a0 d7 d6 d5 d4 d3 d2 d1 d0 read command read address byte 1 xxxx xxxx xxxxxxx x byte 2 byte 3 byte n x x x x x x x x xxxxxxxx d7 d6 d5 d4 d3 d2 d1 d0 d7 d6 d5 d4 d3 d2 d1 d0 d7 d6 d5 d4 d3 d2 d1 d0 spiq spic spid spis_n figure 11. spi multiple read mii management interface (miim) a standard miim interface is provided for all five phy devices in the ks8995m. an external device with mdc/mdio capability is able to read phy status or to configure phy settings. for details on the miim interface standard please reference the ieee 802.3 specification (section 22.2.4.5). the miim interface does not have access to all the configuration registers in the ks8995m. it can only access the standard mii registers. see miim registers. the spi interface, on the other hand, can be used to access the entire ks8995m feature set.
july 2006 39 m9999-070506 ks8995m micrel, inc. register description offset decimal hex description 0-1 0x00-0x01 chip id registers 2-11 0x02-0x0b global control registers 12-15 0x0c-0x0f reserved 16-29 0x10-0x1d port 1 control registers 30-31 0x1e-0x2f port 1 status registers 32-45 0x20-0x2d port 2 control registers 46-47 0x2e-0x2f port 2 status registers 48-61 0x30-0x3d port 3 control registers 62-63 0x3e-0x3f port 3 status registers 64-77 0x40-0x4d port 4 control registers 78-79 0x4e-0x4f port 4 status registers 80-93 0x50-0x5d port 5 control registers 94-95 0x5e-0x5f port 5 status registers 96-103 0x60-0x67 tos priority control registers 104-109 0x68-0x6d mac address registers 110-111 0x6e-0x6f indirect access control registers 112-120 0x70-0x78 indirect data registers 121-122 0x79-0x7a digital testing status registers 123-124 0x7b-0x7c digital testing control registers 125-126 0x7d-0x7e analog testing control registers 127 0x7f analog testing status register global registers address name description mode default register 0 (0x00): chip id0 7-0 family id chip family ro 0x95 register 1 (0x01): chip id1 / start switch 7-4 chip id 0x0 is assigned to m series. (95m) ro 0x0 3-1 revision id revision id ro 0x2 0 start switch 1, start the chip when external pins (ps1, ps0) = (1,0) rw 0x0 or (0,1). note: in (ps1,ps0) = (0,0) mode, the chip will start automatically, after trying to read the external eeprom. if eeprom does not exist, the chip will use default values for all internal registers. if eeprom is present, the contents in the eeprom will be checked. the switch will check: (1) register 0 = 0x95, (2) register 1 [7:4] = 0x0. if this check is ok, the contents in the eeprom will override chip register default values.=0, chip will not start when external pins (ps1, ps0) = (1,0) or (0,1). note: (ps1, ps0) = (1,1) for factory test only.
ks8995m micrel, inc. m9999-070506 40 july 2006 address name description mode default register 2 (0x02): global control 0 7 reserved reserved r/w 0x0 6-4 802.1p base priority used to classify priority for incoming 802.1q packets. r/w 0x4 user priority is compared against this value. : classified as high priority. < : classified as low priority. 3 enable phy mii 1, enable phy mii interface. r/w pin led[5][1] (note: if not enabled, the switch will tri-state all outputs) strap option. pull-down (0): isolate. pull-up (1): enable. note: led[5][1] has internal pull-up. 2 buffer share mode 1, buffer pool is shared by all ports. a port can use r/w 0x1 more buffer when other ports are not busy. 0, a port is only allowed to use 1/5 of the buffer pool. 1 unh mode 1 the switch will drop packets with 0x8808 in t/l r/w 0 filed, or da=01-80-c2-00-00-01. 0, the switch will drop packets qualified as flow control packets. 0 link change age 1, link change from link to no link will cause fast r/w 0 aging (<800 s) to age address table faster. after an age cycle is complete, the age logic will return to normal (300 + 75 seconds ). note: if any port is unplugged, all addresses will be automatically aged out. register 3 (0x03): global control 1 7 pass all frames 1, switch all packets including bad ones. used solely r/w 0 for debugging purpose. works in conjunction with sniffer mode. 6 reserved reserved r/w 0 5 ieee 802.3x transmit 0, will enable transmit flow control based on an result. r/w pin pmrxd3 flow control disable 1, will not enable transmit flow control regardless of strap option. an result. pull-down(0): enable tx flow control. pull-up (1): disable tx/rx flow control. note: pmrxd3 has internal pull- down. 4 ieee 802.3x receive 0, will enable receive flow control based on an result. r/w pin pmrxd3 strap flow control disable 1, will not enable receive flow control regardless of option. pull-down an result. (0): enable rx flow control. pull-up (1): note: bit 5 and bit 4 default values are controlled by disable tx/rx flow the same pin, but they can be programmed control. independently. note: pmrxd3 has internal pull- down. 3 frame length field check 1, will check frame length field in the ieee packets. r/w 0 if the actual length does not match, the packet will be dropped. (for l/t < 1500)
july 2006 41 m9999-070506 ks8995m micrel, inc. address name description mode default 2 aging enable 1, enable age function in the chip r/w pin led[5][2] strap 0, disable aging function option. pull-down (0): aging disable. pull-up (1): aging enable. note: led[5][2] has internal pull up. 1 fast age enable 1, turn on fast age (800 s) r/w 0 0 aggressive back 1, enable more aggressive backoff algorithm in half r/w pin pmrxd0 strap off enable duplex mode to enhance performance. this is not an option. pull-down ieee standard. (0): disable aggressive back off. pull-up (1): aggressive back off. note: pmrxd0 has internal pull down. register 4 (0x04): global control 2 7 unicast port-vlan this feature is used for port-vlan. r/w 1 mismatch discard (described in reg17, reg33...) 1, all packets can not cross vlan boundary. 0, unicast packets (excluding unknown/ mutlicast/broadcast) can cross vlan boundary. 6 multicast storm 1, broadcast storm protection does not include r/w 1 protection disable multicast packets. only da=ffffffffffff packets will be regulated. 0, broadcast storm protection includes da = ffffffffffff and da[40] = 1 packets. 5 back pressure mode 1, carrier sense based backpressure is selected. r/w 1 0, collision based backpressure is selected. 4 flow control and back 1, fair mode is selected. in this mode, if a flow control r/w 1 pressure fair mode port and a non-flow control port talk to the same destination port, packets from the non-flow control port may be dropped. this is to prevent the flow control port from being flow controlled for an extended period of time. 0, in this mode, if a flow control port and a non-flow control port talk to the same destination port, the flow control port will be flow controlled. this may not be fair to the flow control port. 3 no excessive collision drop 1, the switch will not drop packets when 16 or more r/w pin pmrxd1 strap collisions occur. option. pull-down 0, the switch will drop packets when 16 or more (0): drop collisions occur. excessive collision packets. pull-up (1): dont drop excessive collision packets. note: pmrxd1 has internal pull down. 2 huge packet support 1, will accept packet sizes up to 1916 bytes (inclusive). r/w 0 this bit setting will override setting from bit 1 of the same register. 0, the max packet size will be determined by bit 1 of this register.
ks8995m micrel, inc. m9999-070506 42 july 2006 address name description mode default 1 legal maximum packet 1, will accept packet sizes up to 1536 bytes (inclusive). r/w pin pmrxer size check disable 0, 1522 bytes for tagged packets (not including packets strap option. with stpid from cpu to ports 1-4), 1518 bytes for pull-down (0): untagged packets. any packets larger than the specified 1518/1522 byte value will be dropped. packets. pull-up (1): 1536 byte packets. note: pmrxer has internal pull down. 0 priority buffer reserve 1, each output queue is pre-allocated 48 buffers, r/w 0 used exclusively for high priority packets. it is recommended to enable this when priority queue feature is turned on. 0, no reserved buffers for high priority packets. register 5 (0x05): global control 3 7 802.1q vlan enable 1, 802.1q vlan mode is turned on. vlan table needs r/w 0 to set up before the operation. 0, 802.1q vlan is disabled. 6 igmp snoop enable on 1, igmp snoop enabled. all the igmp packets will be r/w 0 switch mii interface forwarded to switch mii port. 0, igmp snoop disabled. 5 enable direct mode on 1, direct mode on port 5. this is a special mode for the r/w 0 switch mii interface switch mii interface. using preamble before mrxdv to direct switch to forward packets, bypassing internal look-up. 0, normal operation. 4 enable pre tag on 1, packets forwarded to switch mii interface will be r/w 0 switch mii interface pre-tagged with the source port number. (preamble before mrxdv) 0, normal operation. 3-2 priority scheme select 00 = always deliver high priority packets first. r/w 00 01 = deliver high/low packets at ratio 10/1. 10 = deliver high/low packets at ratio 5/1. 11 = deliver high/low packets at ratio 2/1. 1 enable tag mask 1, the last 5 digits in the vid field are used as a mask r/w 0 to determine which port(s) the packet should be forwarded to. 0, no tag masks. 0 sniff mode select 1, will do rx and tx sniff (both source port and r/w 0 destination port need to match). 0, will do rx or tx sniff (either source port or destination port needs to match). this is the mode used to implement rx only sniff. register 6 (0x06): global control 4 7 switch mii back 1, enable half-duplex back pressure on switch mii r/w 0 pressure enable interface. 0, disable back pressure on switch mii interface. 6 switch mii half 1, enable mii interface half-duplex mode. r/w pin smrxd2 strap duplex mode 0, enable mii interface full-duplex mode. option. pull-down (0): full duplex mode. pull-up (1): half duplex mode note: smrxd2 has internal pull down.
july 2006 43 m9999-070506 ks8995m micrel, inc. address name description mode default 5 switch mii flow 1, enable full-duplex flow control on switch mii interface. r/w pin smrxd3 strap control enable 0, disable full-duplex flow control on switch mii interface. option. pull-down (0): disable flow control. pull-up(1): enable flow control. note: smrxd3 has internal pull- down. 4 switch mii 10bt 1, the switch interface is in 10mbps mode. r/w pin smrxd1 strap 0, the switch interface is in 100mbps mode. option. pull-down (0): enable 100mbps. pull-up (1): enable 10mpbs. note: smrxd1 has internal pull- down. 3 null vid replacement 1, will replace null vid with port vid(12 bits). r/w 0 0, no replacement for null vid. 2-0 broadcast storm this along with the next register determines how many r/w 000 protection rate bit [10:8] 64 byte blocks of packet data allowed on an input port in a preset period. the period is 50ms for 100bt or 500ms for 10bt. the default is 1%. register 7 (0x07): global control 5 7-0 broadcast storm this along with the previous register determines how r/w 0x4a (1) protection rate bit [7:0] many 64 byte blocks of packet data are allowed on an input port in a preset period. the period is 50ms for 100bt or 500ms for 10bt. the default is 1%. note: 1. 148,800 frames/sec 50ms/interval 1% = 74 frames/interval (approx.) = 0x4a register 8 (0x08): global control 6 7-0 factory testing reserved r/w 0x24 register 9 (0x09): global control 7 7-0 factory testing reserved r/w 0x28 register 10 (0x0a): global control 8 7-0 factory testing reserved r/w 0x24 register 11 (0x0b): global control 9 7-2 reserved n/a 0 1 led mode 0 = led mode 0 r/w pin smrxd0 strap 1 = led mode 1 option. pull-down (0): enabled led mode 0. pull-up (1): enabled led mode 1. note: smrxd0 has internal pull-down 0. mode 0 mode 1 ledx_2 lnk/act 100lnk/act ledx_1 fulld/col 10lnk/act ledx_0 speed fulld 0 special tpid mode 1 = enable special tpid mode . r/w 0 0 = disable special tpid mode.
ks8995m micrel, inc. m9999-070506 44 july 2006 port registers the following registers are used to enable features that are assigned on a per port basis. the register bit assignments are the same for all ports, but the address for each port is different, as indicated. register 16 (0x10): port 1 control 0 register 32 (0x20): port 2 control 0 register 48 (0x30): port 3 control 0 register 64 (0x40): port 4 control 0 register 80 (0x50): port 5 control 0 address name description mode default 7 broadcast storm 1, enable broadcast storm protection for ingress packets r/w 0 protection enable on the port. 0, disable broadcast storm protection. 6 diffserv priority 1, enable diffserv priority classification for ingress r/w 0 classification enable packets on port. 0, disable diffserv function. 5 802.1p priority 1, enable 802.1p priority classification for ingress r/w 0 classification enable packets on port. 0, disable 802.1p. 4 port-based priority 1, ingress packets on the port will be classified as high r/w 0 classification enable priority if diffserv or 802.1p classification is not enabled or fails to classify. 0, ingress packets on port will be classified as low priority if diffserv or 802.1p classification is not enabled or fails to classify. note: diffserv, 802.1p and port priority can be enabled at the same time. the ored result of 802.1p and dscp overwrites the port priority. 3 reserved reserved r/w 0 2 tag insertion 1, when packets are output on the port, the switch will r/w 0 add 802.1q tags to packets without 802.1q tags when received. the switch will not add tags to packets already tagged. the tag inserted is the ingress ports port vid 0, disable tag insertion. 1 tag removal 1, when packets are output on the port, the switch will r/w 0 remove 802.1q tags from packets with 802.1q tags when received. the switch will not modify packets received without tags. 0, disable tag removal. 0 priority enable 1, the port output queue is split into high and low r/w 0 priority queues. 0, single output queue on the port. there is no priority differentiation even though packets are classified into high or low priority. register 17 (0x11): port 1 control 1 register 33 (0x21): port 2 control 1 register 49 (0x31): port 3 control 1 register 65 (0x41): port 4 control 1 register 81 (0x51): port 5 control 1 address name description mode default 7 sniffer port 1, port is designated as sniffer port and will transmit r/w 0 packets that are monitored. 0, port is a normal port. 6 receive sniff 1, all the packets received on the port will be marked r/w 0 as monitored packets and forwarded to the designated sniffer port. 0, no receive monitoring.
july 2006 45 m9999-070506 ks8995m micrel, inc. address name description mode default 5 transmit sniff 1, all the packets transmitted on the port will be r/w 0 marked as monitored packets and forwarded to the designated sniffer port. 0, no transmit monitoring. 4-0 port vlan membership define the ports port vlan membership. bit 4 stands r/w 0x1f for port 5, bit 3 for port 4... bit 0 for port 1. the port can only communicate within the membership. a 1 includes a port in the membership, a 0 excludes a port from membership. register 18 (0x12): port 1 control 2 register 34 (0x22): port 2 control 2 register 50 (0x32): port 3 control 2 register 66 (0x42): port 4 control 2 register 82 (0x52): port 5 control 2 address name description mode default 7 reserved reserved 0x0 6 ingress vlan filtering 1, the switch will discard packets whose vid port r/w 0 membership in vlan table bit[20:16] does not include the ingress port. 0, no ingress vlan filtering. 5 discard non pvid packets 1, the switch will discard packets whose vid does r/w 0 not match ingress port default vid. 0, no packets will be discarded. 4 force flow control 1, will always enable rx and tx flow control on the port, r/w 0 regardless of an result. for port 4 only, 0, the flow control is enabled based on an result. there is a special note: setting a port for both half-duplex and forced configuration pin flow control is an illegal configuration. for half-duplex to set the default, enable back pressure. pin pcol strap option. pull-down (0): no force flow control pull-up (1): force flow control. note: pcol has internal pull down . 3 back pressure enable 1, enable ports half-duplex back pressure. r/w pin pmrxd2 strap 0, disable ports half-duplex back pressure. option. pull-down (0): disable back pressure. pull-up (1): enable back pressure. note: pmrxd2 has internal pull-down. 2 transmit enable 1, enable packet transmission on the port. r/w 1 0, disable packet transmission on the port. 1 receive enable 1, enable packet reception on the port. r/w 1 0, disable packet reception on the port. 0 learning disable 1, disable switch address learning capability. r/w 0 0, enable switch address learning. note: bits 2-0 are used for spanning tree support. see spanning tree support section.
ks8995m micrel, inc. m9999-070506 46 july 2006 register 19 (0x13): port 1 control 3 register 35 (0x23): port 2 control 3 register 51 (0x33): port 3 control 3 register 67 (0x43): port 4 control 3 register 83 (0x53): port 5 control 3 address name description mode default 7-0 default tag [15:8] ports default tag, containing r/w 0 7-5: user priority bits 4: cfi bit 3-0 : vid[11:8] register 20 (0x14): port 1 control 4 register 36 (0x24): port 2 control 4 register 52 (0x34): port 3 control 4 register 68 (0x44): port 4 control 4 register 84 (0x54): port 5 control 4 address name description mode default 7-0 default tag [7:0] default port 1s tag, containing r/w 1 7-0: vid[7:0] note: registers 19 and 20 (and those corresponding to other ports) serve two purposes: (1) associated with the ingress untagged packet s, and used for egress tagging; (2) default vid for the ingress untagged or null-vid-tagged packets, and used for address look-up. register 21 (0x15): port 1 control 5 register 37 (0x25): port 2 control 5 register 53 (0x35): port 3 control 5 register 69 (0x45): port 4 control 5 register 85 (0x55): port 5 control 5 address name description mode default 7-0 transmit high priority this along with port control 7, bits [3:0] form a 12-bit r/w 0 rate control [7:0] field to determine how many 32kbps high priority blocks can be transmitted. (in a unit of 4k bytes in a one second period.) register 22 (0x16): port 1 control 6 register 38 (0x26): port 2 control 6 register 54 (0x36): port 3 control 6 register 70 (0x46): port 4 control 6 register 86 (0x56): port 5 control 6 address name description mode default 7-0 transmit low priority this along with port control 7, bits [7:4] form a 12-bit r/w 0 rate control [7:0] field to determine how many 32kbps low priority blocks can be transmitted. (in a unit of 4k bytes in a one second period.) register 23 (0x17): port 1 control 7 register 39 (0x27): port 2 control 7 register 55 (0x37): port 3 control 7 register 71 (0x47): port 4 control 7 register 87 (0x57): port 5 control 7 address name description mode default 7-4 transmit low priority this along with port control 6, bits [7:0] form a 12-bit r/w 0 rate control [11:8] field to determine how many 32kbps low priority blocks can be transmitted. (in a unit of 4k bytes in a one second period.) 3-0 transmit high priority this along with port control 5, bits [7:0] form a 12-bit r/w 0 rate control [11:8] field to determine how many 32kbps high priority blocks can be transmitted. (in unit of 4k bytes in a one second period.)
july 2006 47 m9999-070506 ks8995m micrel, inc. register 24 (0x18): port 1 control 8 register 40 (0x28): port 2 control 8 register 56 (0x38): port 3 control 8 register 72 (0x48): port 4 control 8 register 88 (0x58): port 5 control 8 address name description mode default 7-0 receive high priority this along with port control 10, bits [3:0] form a 12-bit r/w 0 rate control [7:0] field to determine how many 32kbps high priority blocks can be received. (in a unit of 4k bytes in a one second period.) register 25 (0x19): port 1 control 9 register 41 (0x29): port 2 control 9 register 57 (0x39): port 3 control 9 register 73 (0x49): port 4 control 9 register 89 (0x59): port 5 control 9 address name description mode default 7-0 receive low priority this along with port control 10, bits [7:4] form a 12-bit r/w 0 rate control [7:0] field to determine how many 32kbps low priority blocks can be received. (in a unit of 4k bytes in a one second period.) register 26 (0x1a): port 1 control 10 register 42 (0x2a): port 2 control 10 register 58 (0x3a): port 3 control 10 register 74 (0x4a): port 4 control 10 register 90 (0x5a): port 5 control 10 address name description mode default 7-4 receive low priority this along with port control 9, bits [7:0] form a 12-bit r/w 0 rate control [11:8] field to determine how many 32kbps low priority blocks can be received. (in a unit of 4k bytes in a one second period.) 3-0 receive high priority this along with port control 8, bits [7:0] form a 12-bit r/w 0 rate control [11:8] field to determine how many 32kbps high priority blocks can be received. (in a unit of 4k bytes in a one second period.) register 27 (0x1b): port 1 control 11 register 43 (0x2b): port 2 control 11 register 59 (0x3b): port 3 control 11 register 75 (0x4b): port 4 control 11 register 91 (0x5b): port 5 control 11 address name description mode default 7 receive differential 1, if bit 6 is also 1 this will enable receive rate control r/w 0 priority rate control for this port on low priority packets at the low priority rate. if bit 5 is also 1, this will enable receive rate control on high priority packets at the high priority rate 0, receive rate control will be based on the low priority rate for all packets on this port. 6 low priority receive 1, enable ports low priority receive rate control feature. r/w 0 rate control enable 0, disable ports low priority receive rate control. 5 high priority receive 1, if bit 7 is also 1 this will enable the ports high r/w 0 rate control enable priority receive rate control feature. if bit 7 is a 0 and bit 6 is a 1, all receive packets on this port will be rate controlled at the low priority rate. 0, disable ports high priority receive rate control feature. 4 low priority receive rate 1, flow control may be asserted if the ports low priority r/w 0 flow control enable receive rate is exceeded. 0, flow control is not asserted if the ports low priority receive rate is exceeded.
ks8995m micrel, inc. m9999-070506 48 july 2006 address name description mode default 3 high priority receive 1, flow control may be asserted if the ports high r/w 0 rate flow control enable priority receive rate is exceeded. (to use this, differential receive rate control must be on.) 0, flow control is not asserted if the ports high priority receive rate is exceeded. 2 transmit differential 1, will do transmit rate control on both high and low r/w 0 priority rate control priority packets based on the rate counters defined by the high and low priority packets respectively. 0, will do transmit rate control on any packets. the rate counters defined in low priority will be used. 1 low priority transmit 1, enable the ports low priority transmit rate control r/w 0 rate control enable feature. 0, disable the ports low priority transmit rate control feature. 0 high priority transmit 1, enable the ports high priority transmit rate control r/w 0 rate control enable feature. 0, disable the ports high priority transmit rate control feature. register 28 (0x1c): port 1 control 12 register 44 (0x2c): port 2 control 12 register 60 (0x3c): port 3 control 12 register 76 (0x4c): port 4 control 12 register 92 (0x5c): port 5 control 12 note: port control 12 and 13, and port status 0 contents can be accessed by miim (mdc/mdio) interface via the standard miim register definition. address name description mode default 7 disable auto-negotiation 1, disable auto-negotiation, speed and duplex are r/w 0 decided by bit 6 and 5 of the same register. 0, auto-negotiation is on. 6 forced speed 1, forced 100bt if an is disabled (bit 7). r/w 1 0, forced 10bt if an is disabled (bit 7). 5 forced duplex 1, forced full-duplex if (1) an is disabled or (2) an is r/w 0 enabled but failed. for port 4 only, 0, forced half-duplex if (1) an is disabled or (2) an is there is a special enabled but failed. configure pin to set the default, pin pcrs strap option. pull-down (0): force half-duplex. pull-up (1): force full-duplex. note: pcrs has internal pull down. 4 advertised flow 1, advertise flow control capability. r/w 1 control capability 0, suppress flow control capability from transmission to link partner. 3 advertised 100bt 1, advertise 100bt full-duplex capability. r/w 1 full-duplex capability 0, suppress 100bt full-duplex capability from transmission to link partner. 2 advertised 100bt 1, advertise 100bt half-duplex capability. r/w 1 half-duplex capability 0, suppress 100bt half-duplex capability from transmission to link partner. 1 advertised 10bt 1, advertise 10bt full-duplex capability. r/w 0 full-duplex capability 0, suppress 10bt full-duplex capability from transmission to link partner.
july 2006 49 m9999-070506 ks8995m micrel, inc. address name description mode default 0 advertised 10bt 1, advertise 10bt half-duplex capability. r/w 1 half-duplex capability 0, suppress 10bt half-duplex capability from transmission to link partner. register 29 (0x1d): port 1 control 13 register 45 (0x2d): port 2 control 13 register 61 (0x3d): port 3 control 13 register 77 (0x4d): port 4 control 13 register 93 (0x5d): port 5 control 13 address name description mode default 7 led off 1, turn off all ports leds (ledx_2, ledx_1, ledx_0, r/w 0 where x is the port number). these pins will be driven high if this bit is set to one. 0, normal operation. 6 txids 1, disable ports transmitter. r/w 0 0, normal operation. 5 restart an 1, restart auto-negotiation. 0, normal operation. r/w 0 4 disable far end fault 1, disable far end fault detection and pattern transmission. 0, enable far end fault detection and pattern transmission. r/w 0 3 power down 1, power down 0, normal operation r/w 0 2 disable auto mdi/mdix 1, disable auto mdi/mdix function. 0, enable auto mdi/mdix function. r/w 0 1 forced mdi 1, if auto mdi/mdix is disabled, force phy into mdi mode. 0, do not force phy into mdix mode. r/w 0 0l oopback 1, perform local loopback, (ie. loopback phys tx back to rx). 0, normal operation. r/w 0 register 30 (0x1e): port 1 status 0 register 46 (0x2e): port 2 status 0 register 62 (0x3e): port 3 status 0 register 78 (0x4e): port 4 status 0 register 94 (0x5e): port 5 status 0 address name description mode default 7 mdix status 1, mdi ro 0 0, mdix 6 an done 1, an done ro 0 0, an not done 5 link good 1, link good ro 0 0, link not good 4 partner flow 1, link partner flow control capable ro 0 control capability 0, link partner not flow control capable 3 partner 100bt 1, link partner 100bt full-duplex capable ro 0 full-duplex capability 0, link partner not 100bt full-duplex capable 2 partner 100bt 1, link partner 100bt half-duplex capable ro 0 half-duplex capability 0, link partner not 100bt half-duplex capable 1 partner 10bt 1, link partner 10bt full-duplex capable ro 0 full-duplex capability 0, link partner not 10bt full-duplex capable 0 partner 10bt 1, link partner 10bt half-duplex capable ro 0 half-duplex capability 0, link partner not 10bt half-duplex capable
ks8995m micrel, inc. m9999-070506 50 july 2006 register 31 (0x1f): port 1 status 1 register 47 (0x2f): port 2 status 1 register 63 (0x3f): port 3 status 1 register 79 (0x4f): port 4 status 1 register 95 (0x5f): port 5 status 1 address name description mode default 7-1 reserved 1, perform phy loopback, i.e. loopback macs tx r/o 0 back to rx. 0, normal operation. 0 far end fault 1, far end fault status detected. ro 0 0, no far end fault status detected. advanced control registers the ipv4 tos priority control registers implement a fully decoded 64 bit dscp (differentiated services code point) register used to determine priority from the 6 bit tos field in the ip header. the most significant 6 bits of the tos field are fully d ecoded into 64 possibilities, and the singular code that results is compared against the corresponding bit in the dscp register. if t he register bit is a 1, the priority is high; if it is a 0, the priority is low. address name description mode default register 96 (0x60): tos priority control register 0 7-0 dscp[63:56] r/w 00000000 register 97 (0x61): tos priority control register 1 7-0 dscp[55:48] r/w 00000000 register 98 (0x62): tos priority control register 2 7-0 dscp[47:40] r/w 00000000 register 99 (0x63): tos priority control register 3 7-0 dscp[39:32] r/w 00000000 register 100 (0x64): tos priority control register 4 7-0 dscp[31:24] r/w 00000000 register 101 (0x65): tos priority control register 5 7-0 dscp[23:16] r/w 00000000 register 102 (0x66): tos priority control register 6 7-0 dscp[15:8] r/w 00000000 register 103 (0x67): tos priority control register 7 7-0 dscp[7:0] r/w 00000000 registers 104 to 109 define the switching engines mac address. this 48-bit address is used as the source address in mac pause control frames. register 104 (0x68): mac address register 0 7-0 maca[47:40] r/w 0x00 register 105 (0x69): mac address register 1 7-0 maca[39:32] r/w 0x10 register 106 (0x6a): mac address register 2 7-0 maca[31:24] r/w 0xa1 register 107 (0x6b): mac address register 3 7-0 maca[23:16] r/w 0xff register 108 (0x6c): mac address register 4 7-0 maca[15:8] r/w 0xff register 109 (0x6d): mac address register 5 7-0 maca[7:0] r/w 0xff use registers 110 and 111 to read or write data to the static mac address table, vlan table, dynamic address table, or the mib counters.
july 2006 51 m9999-070506 ks8995m micrel, inc. address name description mode default register 110 (0x6e): indirect access control 0 7-5 reserved reserved r/w 000 4 read high write low 1, read cycle r/w 0 0, write cycle 3-2 table select 00 = static mac address table selected r/w 0 01 = vlan table selected 10 = dynamic address table selected 11 = mib counter selected 1-0 indirect address high bit 9-8 of indirect address r/w 00 register 111 (0x6f): indirect access control 1 7-0 indirect address low bit 7-0 of indirect address r/w 00000000 note: write to register 111 will actually trigger a command. read or write access will be decided by bit 4 of reg110. register 112 (0x70): indirect data register 8 68-64 indirect data bit 68-64 of indirect data r/w 00000 register 113 (0x71): indirect data register 7 63-56 indirect data bit 63-56 of indirect data r/w 00000000 register 114 (0x72): indirect data register 6 55-48 indirect data bit 55-48 of indirect data r/w 00000000 register 115 (0x73): indirect data register 5 47-40 indirect data bit 47-40 of indirect data r/w 00000000 register 116 (0x74): indirect data register 4 39-32 indirect data bit 39-32 of indirect data r/w 00000000 register 117 (0x75): indirect data register 3 31-24 indirect data bit of 31-24 of indirect data r/w 00000000 register 118 (0x76): indirect data register 2 23-16 indirect data bit 23-16 of indirect data r/w 00000000 register 119 (0x77): indirect data register 1 15-8 indirect data bit 15-8 of indirect data r/w 00000000 register 120 (0x78): indirect data register 0 7-0 indirect data bit 7-0 of indirect data r/w 00000000 do not write or read to/from registers 121 to 127. doing so may prevent proper operation. micrel internal testing only. register 121 (0x79): digital testing status 0 7-0 factory testing reserved ro 0x0 qm_split status register 122 (0x7a): digital testing status 1 7-0 factory testing reserved ro 0x0 dbg[7:0] register 123 (0x7b): digital testing control 0 7-0 factory testing reserved r/w 0x0 dbg[12:8] register 124 (0x7c): digital testing control 1 7-0 factory testing reserved r/w 0x0 register 125 (0x7d): analog testing control 0 7-0 factory testing reserved r/w 0x0
ks8995m micrel, inc. m9999-070506 52 july 2006 address name description mode default register 126 (0x7e): analog testing control 1 7-0 factory testing reserved r/w 0x0 register 127 (0x7f): analog testing status 7-0 factory testing reserved ro 0x0
july 2006 53 m9999-070506 ks8995m micrel, inc. static mac address ks8995m has a static and a dynamic address table. when a da look-up is requested, both tables will be searched to make a packet forwarding decision. when an sa look-up is requested, only the dynamic table is searched for aging, migration and learning purposes. the static da look-up result will have precedence over the dynamic da look-up result. if there are da matches in both tables, the result from the static table will be used. the static table can only be accessed and controlled by an external spi master (usually a processor). the entries in the static table will not be aged out by ks8995m. an external devi ce does all addition, modification and deletion. note: register bit assignments are different for static mac table reads and static mac table write as shown in the two tables below. address name description mode default format of static mac table for reads (8 entries) 60-57 fid filter vlan id, representing one of the 16 active vlans ro 0000 56 use fid 1, use (fid+mac) to look-up in static table. ro 0 0, use mac only to look-up in static table. 55 reserved reserved ro n/a 54 override 1, override spanning tree transmit enable = 0 or ro 0 receive enable = 0 setting. this bit is used for spanning tree implementation. 0, no override. 53 valid 1, this entry is valid, the look-up result will be used ro 0 0, this entry is not valid. 52-48 forwarding ports the 5 bits control the forward ports, example: ro 00000 00001, forward to port 1 00010, forward to port 2 ..... 10000, forward to port 5 00110, forward to port 2 and port 3 11111, broadcasting (excluding the ingress port) 47-0 mac address 48 bit mac address ro 0x0 format of static mac table for writes (8 entries) 59-56 fid filter vlan id, representing one of the 16 active vlans. w 0000 55 use fid 1, use (fid+mac) to look-up in static table. 0, use mac only to look-up in static table. w 0 54 override 1, override spanning tree transmit enable = 0 or w 0 receive enable = 0 setting. this bit is used for spanning tree implementation. 0, no override. 53 valid 1, this entry is valid, the look-up result will be used. w 0 0, this entry is not valid. 52-48 forwarding ports the 5 bits control the forward ports, example: w 00000 00001, forward to port 1 00010, forward to port 2 ..... 10000, forward to port 5 00110, forward to port 2 and port 3 11111, broadcasting (excluding the ingress port) 47-0 mac address 48 bit mac address w 0x0 table 12. static mac address table
ks8995m micrel, inc. m9999-070506 54 july 2006 examples: (1) static address table read (read the 2nd entry) write to reg110 with 0x10 (read static table selected) write to reg111 with 0x1 (trigger the read operation) then read reg113 (60-56) read reg114 (55-48) read reg115 (47-40) read reg116 (39-32) read reg117 (31-24) read reg118 (23-16) read reg119 (15-8) read reg120 (7-0) (2) static address table write (write the 8th entry) write reg113 (59-56) write reg114 (55-48) write reg115 (47-40) write reg116 (39-32) write reg117 (31-24) write reg118 (23-16) write reg119 (15-8) write reg120 (7-0) write to reg110 with 0x00 (write static table selected) write to reg111 with 0x7 (trigger the write operation)
july 2006 55 m9999-070506 ks8995m micrel, inc. address name description mode default format of static vlan table (16 entries) 21 valid 1, the entry is valid r/w 1 0, entry is invalid 20-16 membership specify which ports are members of the vlan. r/w 11111 if a da look-up fails (no match in both static and dynamic tables), the packet associated with this vlan will be forwarded to ports specified in this field. eg. 11001 means port 5,4, and 1 are in this vlan. 15-12 fid filter id. ks8995m supports 16 active vlans r/w 0 represented by these four bit fields. fid is the mapped id. if 802.1q vlan is enabled, the look-up will be based on fid+da and fid+sa. 11-0 vid eee 802.1q 12 bit vlan id r/w 1 table 13. vlan table vlan address vlan table is used to do vlan table look-up. if 802.1q vlan mode is enabled (register 5 bit 7 =1), this table will be used to retrieve vlan information that the ingress packet is associated with. the information includes fid (fiter id), vid(vlan id), vlan membership described below: if 802.1q vlan mode is enabled, ks8995m will assign a vid to every ingress packet. if the packet is untagged or tagged with a null vid, the packet is assigned with the default port vid of the ingress port. if the packet is tagged with non null vid, th e vid in the tag will be used. the look-up process will start from the vlan table look-up. if the vid is not valid, the packet wi ll be dropped and no address learning will take place. if the vid is valid, the fid is retrieved. the fid+da and fid+sa lookups are performed. the fid+da look-up determines the forwarding ports. if fid+da fails, the packet will be broadcasted to all the members (excluding the ingress port) of the vlan. if fid+sa fails, the fid+sa will be learned. examples: (1) vlan table read (read the 3rd entry) write to reg110 with 0x14 (read vlan table selected) write to reg111 with 0x2 (trigger the read operation) then read reg118 (vlan table bits 21-16) read reg119 (vlan table bits 15-8) read reg120 (vlan table bits 7-0) (2) vlan table write (write the 7th entry) write to reg118 (vlan table bits 21-16) write to reg119 (vlan table bits 15-8) write to reg120 (vlan table bits 7-0) write to reg110 with 0x04 (write vlan table selected) write to reg111 with 0x6 (trigger the write operation) note: the sequence of the writing entries should start from entry 0. improper sequence of the vlan entries could cause the vlan to be nonfunctional.
ks8995m micrel, inc. m9999-070506 56 july 2006 address name description mode default format of dynamic mac address table (1k entries) 68 mac empty 1, there is no valid entry in the table. ro 1 0, there are valid entries in the table. 67-58 no of valid entries indicates how many valid entries in the table: ro 0 0x3ff means 1k entries 0x1 means 2 entries 0x0 and bit 68 = 0: means 1 entry 0x0 and bit 68 = 1: means 0 entry 57-56 time stamp 2-bit counters for internal aging. ro 55 data ready 1, the entry is not ready, retry until this bit is set to 0. ro 0, the entry is ready. 54-52 source port the source port where fid+mac is learned. ro 0x0 000 port 1 001 port 2 010 port 3 011 port 4 100 port 5 51-48 fid filter id ro 0x0 47-0 mac address 48 bit mac address ro 0x0 table 14. dynamic mac address table examples: (1) dynamic mac address table read (read the 1st entry), and retrieve the mac table size write to reg110 with 0x18 (read dynamic table selected) write to reg111 with 0x0 (trigger the read operation ) then read reg112 (68-64) read reg113 (63-56) ; // the above two registers show # of entries read reg114 (55-48) // if bit 55 is 1, restart(reread) from this register read reg115 (47-40) read reg116 (39-32) read reg117 (31-24) read reg118 (23-16) read reg119 (15-8) read reg120 (7-0) (2) dynamic mac address table read (read the 257th entry), without retrieving # of entries info write to reg110 with 0x19 (read dynamic table selected) write to reg111 with 0x1 (trigger the read operation) then read reg114 (55-48) // if bit 55 is 1, restart (reread) from this register read reg115 (47-40) read reg116 (39-32) read reg117 (31-24) read reg118 (23-16) read reg119 (15-8) read reg120 (7-0) dynamic mac address this table is ready only. the contents are maintained by ks8995m only.
july 2006 57 m9999-070506 ks8995m micrel, inc. mib counters the mib counters are provided on per port basis. the indirect memory is as below. for port 1 offset counter name description 0x0 rxloprioritybyte rx lo-priority (default) octet count including bad packets. 0x1 rxhiprioritybyte rx hi-priority octet count including bad packets. 0x2 rxundersizepkt rx undersize packets w/ good crc. 0x3 rxfragments rx fragment packets w/ bad crc, symbol errors or alignment errors. 0x4 rxoversize rx oversize packets w/ good crc (max: 1536 or 1522 bytes). 0x5 rxjabbers rx packets longer than 1522b w/ either crc errors, alignment errors, or symbol errors. (depends on max packet size setting) 0x6 rxsymbolerror rx packets w/ invalid data symbol and legal packet size. 0x7 rxcrcerror rx packets within (64,1522) bytes w/ an integral number of bytes and a bad crc. (upper limit depends on max packet size setting) 0x8 rxalignmenterror rx packets within (64,1522) bytes w/ a non-integral number of bytes and a bad crc. (upper limit depends on max packet size setting) 0x9 rxcontrol8808pkts the number of mac control frames received by a port with 88-08h in ethertype field. 0xa rxpausepkts the number of pause frames received by a port. pause frame is qualified with ethertype (88-08h), da, control opcode (00-01), data length (64b min), and a valid crc. 0xb rxbroadcast rx good broadcast packets (not including errored broadcast packets or valid multicast packets). 0xc rxmulticast rx good multicast packets (not including mac control frames, errored multicast packets or valid broadcast packets). 0xd rxunicast rx good unicast packets. 0xe rx64octets total rx packets (bad packets included) that were 64 octets in length. 0xf rx65to127octets total rx packets (bad packets included) that are between 65 and 127 octets in length. 0x10 rx128to255octets total rx packets (bad packets included) that are between 128 and 255 octets in length. 0x11 rx256to511octets total rx packets (bad packets included) that are between 256 and 511 octets in length. 0x12 rx512to1023octets total rx packets (bad packets included) that are between 512 and 1023 octets in length. 0x13 rx1024to1522octets total rx packets (bad packets included) that are between 1024 and 1522 octets in length. (upper limit depends on max packet size setting) 0x14 txloprioritybyte tx lo-priority good octet count, including pause packets. 0x15 txhiprioritybyte tx hi-priority good octet count, including pause packets. 0x16 txlatecollision the number of times a collision is detected later than 512 bit-times into the tx of a packet. 0x17 txpausepkts the number of pause frames transmitted by a port. 0x18 txbroadcastpkts tx good broadcast packets (not including errored broadcast or valid multicast packets). 0x19 txmulticastpkts tx good multicast packets (not including errored multicast packets or valid broadcast packets). 0x1a txunicastpkts tx good unicast packets. 0x1b txdeferred tx packets by a port for which the 1st tx attempt is delayed due to the busy medium. 0x1c txtotalcollision tx total collision, half-duplex only. 0x1d txexcessivecollision a count of frames for which tx fails due to excessive collisions. 0x1e txsinglecollision successfully tx frames on a port for which tx is inhibited by exactly one collision. 0x1f txmultiplecollision successfully tx frames on a port for which tx is inhibited by more than one collision. table 15. port-1 mib counter indirect memory offsets
ks8995m micrel, inc. m9999-070506 58 july 2006 for port 2, the base is 0x20, same offset definition (0x20-0x3f) for port 3, the base is 0x40, same offset definition (0x40-0x5f) for port 4, the base is 0x60, same offset definition (0x60-0x7f) for port 5, the base is 0x80, same offset definition (ox80-0x9f) address name description mode default format of per port mib counters (16 entries) 31 overflow 1, counter overflow ro 0 0, no counter overflow 30 count valid 1, counter value is valid ro 0 0, counter value is not valid 29-0 counter values counter value ro 0 offset counter name description 0x100 port1 tx drop packets tx packets dropped due to lack of resources 0x101 port2 tx drop packets tx packets dropped due to lack of resources 0x102 port3 tx drop packets tx packets dropped due to lack of resources 0x103 port4 tx drop packets tx packets dropped due to lack of resources 0x104 port5 tx drop packets tx packets dropped due to lack of resources 0x105 port1 rx drop packets rx packets dropped due to lack of resources 0x106 port2 rx drop packets rx packets dropped due to lack of resources 0x107 port3 rx drop packets rx packets dropped due to lack of resources 0x108 port4 rx drop packets rx packets dropped due to lack of resources 0x109 port5 rx drop packets rx packets dropped due to lack of resources table 16. all port dropped packet mib counters address name description mode default format of all port dropped packet mib counters 30-16 reserved reserved n/a n/a 15-0 counter values counter value ro 0 note: all port dropped packet mib counters do not indicate overflow or validity; therefore the application must keep track of overflo w and valid conditions. examples: (1) mib counter read (read port 1 rx 64 counter) write to reg110 with 0x1c (read mib counters selected) write to reg111 with 0xe (trigger the read operation) then read reg117 (counter value 31-24) // if bit 31 = 1, there was a counter overflow. // if bit 30 = 0, restart (reread) from this register. read reg118 (counter value 23-16) read reg119 (counter value 15-8) read reg120 (counter value 7-0)
july 2006 59 m9999-070506 ks8995m micrel, inc. (2) mib counter read (read port 2 rx 64 counter) write to reg110 with 0x1c (read mib counter selected) write to reg111 with 0x2e (trigger the read operation ) then read reg117 (counter value 31-24) // if bit 31 = 1, there was a counter overflow. // if bit 30 = 0, restart (reread) from this register. read reg118 (counter value 23-16) read reg119 (counter value 15-8) read reg120 (counter value 7-0) (3) mib counter read (read port 1 tx drop packets) write to reg 110 with 0x1d write to reg 111 with 0x00 then read reg119 (counter value 15-8) read reg120 (counter value 7-0) note: to read out all the counters, the best performance over the spi bus is (160+3) 8 200 = 260ms, where there are 160 register, 3 overhead, 8 clocks per access, at 5mhz. in the heaviest condition, the byte counter will overflow in 2 minutes. it is recommended that the softwar e read all the counters at least every 30 seconds. the per port mib counters are designed as read clear. a per port mib counter will be cleared after it is accessed. all port dropped packet mib counters are not cleared after they are accessed. the application needs to keep track of overflow and valid conditions on these counters.
ks8995m micrel, inc. m9999-070506 60 july 2006 address name description mode default register 0: mii control 15 soft reset not supported ro 0 14 loop back 1, loop back mode (loop back at mac) r/w 0 0, normal operation 13 force 100 1, 100mbps r/w 1 0, 10mbps 12 an enable 1, auto-negotiation enabled r/w 1 0, auto-negotiation disabled 11 power down 1, power down r/w 0 0, normal operation 10 phy isolate not supported ro 0 9 restart an 1, restart auto-negotiation r/w 0 0, normal operation 8 force full-duplex 1, full duplex r/w 0 0, half-duplex 7 collision test not supported ro 0 6 reserved ro 0 5 reserved ro 0 4 force mdi 1, force mdi r/w 0 0, normal operation 3 disable auto mdi/mdix 1, disable auto mdi/mdix r/w 0 0, normal operation 2 disable far end fault 1, disable far end fault detection r/w 0 0, normal operation 1 disable transmit 1, disable transmit r/w 0 0, normal operation 0 disable led 1, disable led r/w 0 0, normal operation miim registers (all the registers defined in this section can be also accessed via the spi interface. note: different mapping mechanisms used for miim and spi). the phyad defined in ieee is assigned as 0x1 for port 1, 0x2 for port 2, 0x3 for port 3, 0x4 for p ort 4, 0x5 for port 5. the regad supported are 0,1,2,3,4,5.
july 2006 61 m9999-070506 ks8995m micrel, inc. address name description mode default register 1: mii status 15 t4 capable 0, not 100 baset4 capable ro 0 14 100 full capable 1, 100basetx full-duplex capable ro 1 0, not capable of 100basetx full-duplex 13 100 half capable 1, 100basetx half-duplex capable ro 1 0, not 100basetx half-duplex capable 12 10 full capable 1, 10baset full-duplex capable ro 1 0, not 10baset full-duplex capable 11 10 half capable 1, 10baset half-duplex capable ro 1 0, 10baset half-duplex capable 10-7 reserved ro 0 6 preamble suppressed not supported ro 0 5 an complete 1, auto-negotiation complete ro 0 0, auto-negotiation not completed 4 far end fault 1, far end fault detected ro 0 0, no far end fault detected 3 an capable 1, auto-negotiation capable ro 1 0, not auto-negotiation capable 2 link status 1, link is up ro 0 0, link is down 1 jabber test not supported ro 0 0 extended capable 0, not extended register capable ro 0 register 2: phyid high 15-0 phyid high high order phyid bits ro 0x0022 register 3: phyid low 15-0 phyid low low order phyid bits ro 0x1450 register 4: advertisement ability 15 next page not supported ro 0 14 reserved ro 0 13 remote fault not supported ro 0 12-11 reserved ro 0 10 pause 1, advertise pause ability r/w 1 0, do not advertise pause ability 9 reserved r/w 0 8 adv 100 full 1, advertise 100 full-duplex ability r/w 1 0, do not advertise 100 full-duplex ability 7 adv 100 half 1, advertise 100 half-duplex ability r/w 1 0, do not advertise 100 half-duplex ability 6 adv 10 full 1, advertise 10 full-duplex ability r/w 1 0, do not advertise 10 full-duplex ability 5 adv 10 half 1, advertise 10 half-duplex ability r/w 1 0, do not advertise 10 half-duplex ability 4-0 selector field 802.3 ro 00001
ks8995m micrel, inc. m9999-070506 62 july 2006 address name description mode default register 5: link partner ability 15 next page not supported ro 0 14 lp ack not supported ro 0 13 remote fault not supported ro 0 12-11 reserved ro 0 10 pause link partner pause capability ro 0 9 reserved ro 0 8 adv 100 full link partner 100 full capability ro 0 7 adv 100 half link partner 100 half capability ro 0 6 adv 10 full link partner 10 full capability ro 0 5 adv 10 half link partner 10 half capability ro 0 4-0 reserved ro 00001
july 2006 63 m9999-070506 ks8995m micrel, inc. absolute maximum ratings (1) supply voltage (v ddar, v ddap, v ddc , v ddat ) ................. C0.5v to +2.4v (v ddio ) .................................................... C0.5v to +4.0v input voltage ............................................... C0.5v to +4.0v output voltage ............................................ C0.5v to +4.0v lead temperature (soldering, 10 sec.) ..................... 270 c storage temperature (t s ) ....................... C55 c to +150 c operating ratings (2) supply voltage (v ddar, v ddap, v ddc ) ............................. +1.7v to +1.9v (v ddat ) .................................................... +2.4v to +2.6v (v ddio ) ......................................................... +3.0 to +3.6 ambient temperature (t a ) commercial .............................................. C0 c to +70 c industrial ................................................. C40 c to +85 c package thermal resistance (3) pqfp ( ja ) no air flow ................................. 42.91 c/w electrical characteristics (4) v in = 1.8v/2.5v; t a = 0 c to +70 c; unless noted, bold values indicate C40 c t a +85 c; unless noted. symbol parameter condition min typ max units 100basetx operationall ports 100% utilization i dx 100basetx (transmitter) v ddat 229 250 ma i ddc 100basetx (digital core/pll + analog rx) v ddc , v ddap , v ddar 157 230 ma i ddio 100basetx (digital io) v ddio 17 30 ma 10basetx operationall ports 100% utilization i dx 10basetx (transmitter) v ddat 350 375 ma i ddc 10basetx (digital core + analog rx) v ddc , v ddap 102 180 ma i ddio 10basetx (digital io) v ddio 615ma auto-negotiation mode i dx 10basetx (transmitter) v ddat 25 40 ma i ddc 10basetx (digital core + analog rx) v ddc , v ddap 108 180 ma i ddio 10basetx (digital io) v ddio 17 20 ma ttl inputs v ih input high voltage 1/2 (v ddio )v +0.4v v il input low voltage 1/2 (v ddio ) v C0.4v i in input current v in = gnd ~ v ddio C10 10 a (excluding pull-up/pull-down) ttl outputs v oh output high voltage i oh = C8ma v ddio v C0.4 v ol output low voltage i ol = 8ma +0.4 v |i oz | output tri-state leakage v in = gnd ~ v ddio 10 a 100basetx transmit (measured differentially after 1:1 transformer) v o peak differential output voltage 100 ? termination on the differential output 0.95 1.05 v v imb output voltage imbalance 100 ? termination on the differential output 2 % t r , t t rise/fall time 35ns rise/fall time imbalance 0 0.5 ns notes: 1. exceeding the absolute maximum rating may damage the device. 2. the device is not guaranteed to function outside its operating rating. unused inputs must always be tied to an appropriate lo gic voltage level (ground to v dd ). 3. no hs (heat spreader) in package. 4. specification for packaged product only.
ks8995m micrel, inc. m9999-070506 64 july 2006 symbol parameter condition min typ max units 100basetx transmit (measured differentially after 1:1 transformer) duty cycle distortion 0.5 ns overshoot 5% v set reference voltage of iset 0.5 v output jitters peak-to-peak 0.7 1.4 ns 10basetx receive v sq squelch threshold 5mhz square wave 400 mv 10baset transmit (measured differentially after 1:1 transformer) v ddat = 2.5v v p peak differential output voltage 100 ? termination on the differential output 2.3 v jitters added 100 ? termination on the differential output 3.5 v rise/fall times 28 30 ns
july 2006 65 m9999-070506 ks8995m micrel, inc. t iming diagrams scl sda tcyc1 ts1 th1 receive timing figure 12. eeprom interface input receive timing diagram scl sda tcyc1 tr ansmit timing tov1 figure 13. eeprom interface output transmit timing diagram symbol parameter min typ max units t cyc1 clock cycle 16384 ns t s1 set-up time 20 ns t h1 hold time 20 ns t ov1 output valid 4096 4112 4128 ns table 17. eeprom timing parameters
ks8995m micrel, inc. m9999-070506 66 july 2006 tcyc2 ts2 th2 mtxc mtxen mtxd[0] receive timing figure 14. sni input timing mrxc mrxdv tcyc2 tr a nsmit timing tov2 mrxd[0] mcol figure 15. sni output timing symbol parameter min typ max units t cyc2 clock cycle 100 ns t s2 set-up time 10 ns t h2 hold time 0ns t o2 output valid 036ns table 18. sni timing parameters
july 2006 67 m9999-070506 ks8995m micrel, inc. txc t su2 txen t hd2 txd[ 3:0], txer t su1 crs t crs2 t c rs1 data in t hd1 figure 16. mac mode mii receive timing for 100base-t symbol parameter min typ max units t su1 rxd [3:0] set-up to rxc high 10 ns t su2 rxen set-up to rxc high 10 ns t hd1 rxd [3:0] hold after rxc high 0 ns t hd2 rxer hold after rxc high 0 ns t hd3 rxen hold after rxc high 0 ns t crs1 rxen high to crs asserted latency 40 ns t crs2 rxen low to crs de-asserted latency 40 ns table 19. mac mode mii receive timing parameters
ks8995m micrel, inc. m9999-070506 68 july 2006 rxd[ 3:0] crs rxdv t rlat t su t hd rxc t wl t wh t p figure 17. mac mode mii transmit timing for 100base-t symbol parameter min typ max units t p txc period 40 ns t wl txc pulse width 20 ns t wh txc pulse width 20 ns t su txd [3:0], txer, txdv set-up to rising edge of rxc 20 ns t hd txd [3:0], txer, txdv hold from rising edge of rxc 20 ns t rlat crs to txd latency, 4b or 5b aligned 60 ns table 20. mac mode mii transmit timing parameters
july 2006 69 m9999-070506 ks8995m micrel, inc. rx+/ rx- rxd[ 3:0] rxer crs t crs1 t crs2 rxdv t rlat t su t hd start of stream end of stream rxc t wl t wh t p figure 18. phy mode mii receive timing for 100base-t symbol parameter min typ max units t p rxc period 40 ns t wl rxc pulse width 20 ns t wh rxc pulse width 20 ns t su rxd [3:0], rxer, rxdv set-up to rising edge of rxc 20 ns t hd rxd [3:0], rxer, rxdv hold from rising edge of rxc 20 ns t rlat crs to rxd latency, 4b or 5b aligned 60 ns table 21. phy mode mii receive timing parameters
ks8995m micrel, inc. m9999-070506 70 july 2006 txc t hd2 t su2 txen txd[3:0], txer t su1 t hd1 crs t cr s2 t crs1 data in figure 19. phy mode mii transmit timing for 100base-t symbol parameter min typ max units t su1 txd [3:0] set-up to txc high 10 ns t su2 txen set-up to txc high 10 ns t hd1 txd [3:0] hold after txc high 0 ns t hd2 txer hold after txc high 0 ns t hd3 txen hold after txc high 0 ns t crs1 txen high to crs asserted latency 40 ns t crs2 txen low to crs de-asserted latency 40 ns table 22. phy mode mii transmit timing parameters
july 2006 71 m9999-070506 ks8995m micrel, inc. spiq spic spid spis_n high impedance msb tchsl tslch tdvch tchdx tdldh tdhdl lsb tclch tchcl tshch tchsh tshsl figure 20. spi input timing symbol parameter min typ max units f c clock frequency 5 mhz t chsl spis_n inactive hold time 90 ns t slch spis_n active set-up time 90 ns t chsh spis_n active hold time 90 ns t shch spis_n inactive set-up time 90 ns t shsl spis_n deselect time 100 ns t dvch data input set-up time 20 ns t chdx data input hold time 30 ns t clch clock rise time 1 s t chcl clock fall time 1 s t dldh data input rise time 1 s t dhdl data input fall time 1 s table 21. spi input timing parameters
ks8995m micrel, inc. m9999-070506 72 july 2006 spid spic spiq spis_n tqlqh tqhql lsb tch tcl tshqz tclqv tclqx figure 21. spi output timing symbol parameter min typ max units f c clock frequency 5 mhz t clqx spiq hold time 00ns t clqv clock low to spiq valid 60 ns t ch clock high time 90 ns t cl clock low time 90 ns t qlqh spiq rise time 50 ns t qhql spiq fall time 50 ns t shqz spiq disable time 100 ns table 22. spi output timing parameters
july 2006 73 m9999-070506 ks8995m micrel, inc. tsr tcs tch trc supply v oltage rst_n strap-in v alue strap-in / output pin figure 22. reset timing symbol parameter min typ max units t sr stable supply voltages to reset high 10 ms t cs configuration set-up time 50 ns t ch configuration hold time 50 ns t rc reset to strap-in pin output 50 ns table 23. reset timing parameters
ks8995m micrel, inc. m9999-070506 74 july 2006 reset circuit diagram micrel recommends the following discrete reset circuit as shown in figure 23 when powering up the ks8995m device. for the application where the reset circuit signal comes from another device (e.g. cpu, fpga, etc.), we recommend the reset circuit as shown in figure 24. vcc r 10k c 10f d1 ks8995m rst d1: 1n4148 figure 23. recommended reset circuit vcc r 10k d2 c 10f d1 cpu/fpga rst_out_n ks8995m rst d1, d2: 1n4148 figure 24. recommended circuit for interfacing with cpu/fpga reset at power-on-rest, r, c, and d1 provide the necessary ramp rise time to reset the micrel device. the reset out from cpu/fpga provides warm reset after power up. it is also recommended to power up the vdd core voltage earlier than vddio voltage. at worst case, both the vdd core and vddio voltages should come up at the same time.
july 2006 75 m9999-070506 ks8995m micrel, inc. selection of isolation transformer (1) one simple 1:1 isolation transformer is needed at the line interface. an isolation transformer with integrated common-mode choke is recommended for exceeding fcc requirements. the following table gives recommended transformer characteristics. characteristics name value test condition turns ratio 1 ct : 1 ct open-circuit inductance (min.) 350 h 100mv, 100 khz, 8ma leakage inductance (max.) 0.4 h 1mhz (min.) inter-winding capacitance (max.) 12pf d.c. resistance (max.) 0.9 ? insertion loss (max.) 1.0db 0mhz to 65mhz hipot (min.) 1500vrms note: 1. the ieee 802.3u standard for 100basetx assumes a transformer loss of 0.5db. for the transmit line transformer, insertion los s of up to 1.3db can be compensated by increasing the line drive current by means of reducing the iset resistor value. the following transformer vendors provide compatible magnetic parts for micrels device: 4-port integrated auto number single port auto number vendor part mdix of ports vendor part mdix of ports pulse h1164 yes 4 pulse h1102 yes 1 bel fuse 558-5999-q9 yes 4 bel fuse s558-5999-u7 yes 1 ycl ph406466 yes 4 ycl pt163020 yes 1 transpower hb826-2 yes 4 transpower hb726 yes 1 delta lf8731 yes 4 delta lf8505 yes 1 lankom sq-h48w yes 4 lankom lf-h41s yes 1 table 24. qualified magnetics lists
ks8995m micrel, inc. m9999-070506 76 july 2006 package information 128-pin pqfp (pq) micrel, inc. 2180 fortune drive san jose, ca 95131 usa tel + 1 (408) 944-0800 fax + 1 (408) 944-0970 web http://www.micrel.com the information furnished by micrel in this data sheet is believed to be accurate and reliable. however, no responsibility is a ssumed by micrel for its use. micrel reserves the right to change circuitry and specifications at any time without notification to the customer. micrel products are not designed or authorized for use as components in life support appliances, devices or systems where malfu nction of a product can reasonably be expected to result in personal injury. life support devices or systems are devices or systems that (a) are intend ed for surgical implant into the body or (b) support or sustain life, and whose failure to perform can be reasonably expected to result in a significant inj ury to the user. a purchasers use or sale of micrel products for use in life support appliances, devices or systems is at purchasers own risk and purchaser agrees to fully indemnify micrel for any damages resulting from such use or sale. ? 2003 micrel, incorporated.


▲Up To Search▲   

 
Price & Availability of KS8995M0607

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X